-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
75 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/react-server-component/tests/fixture/client/sever-component/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function Home() { | ||
return 'home'; | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/react-server-component/tests/fixture/client/sever-component/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function Home() { | ||
return 'home'; | ||
} |
9 changes: 9 additions & 0 deletions
9
packages/react-server-component/tests/fixture/client/use-client/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use client'; | ||
|
||
import react from "react"; | ||
|
||
export default function Home() { | ||
return 'home'; | ||
} | ||
|
||
export const dataLoader = {}; |
7 changes: 7 additions & 0 deletions
7
packages/react-server-component/tests/fixture/client/use-client/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/*__ice_internal_client_entry_do_not_use__ default,dataLoader*/ import react from "react"; | ||
|
||
export default function Home() { | ||
return 'home'; | ||
} | ||
|
||
export const dataLoader = {}; |
1 change: 1 addition & 0 deletions
1
packages/react-server-component/tests/fixture/server/server-component/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// comments | ||
export default function () { | ||
return null | ||
} |
1 change: 1 addition & 0 deletions
1
packages/react-server-component/tests/fixture/server/server-component/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// comments | ||
export default function () { | ||
return null | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/react-server-component/tests/fixture/server/use-client/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
const { createClientModuleProxy } = require("react-server-dom-webpack/server.node"); | ||
/*__ice_internal_client_entry_do_not_use__ default*/ const { createClientModuleProxy } = require("react-server-dom-webpack/server.node"); | ||
module.exports = createClientModuleProxy("file_path.js"); |