-
Notifications
You must be signed in to change notification settings - Fork 26.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix conflict when re-exporting multiple Client References (#49468)
Closes #49324. Default export should only be added in the loader generated boundary file when it actually exists. fix NEXT-1112
- Loading branch information
Showing
8 changed files
with
44 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Foo } from 'client-esm-module-wildcard-2' | ||
|
||
export default function Page() { | ||
return <Foo /> | ||
} |
5 changes: 5 additions & 0 deletions
5
test/e2e/app-dir/app-external/node_modules_bak/client-esm-module-wildcard-2/bar.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,5 @@ | ||
'use client' | ||
|
||
export function Bar() { | ||
return 'Bar' | ||
} |
5 changes: 5 additions & 0 deletions
5
test/e2e/app-dir/app-external/node_modules_bak/client-esm-module-wildcard-2/foo.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,5 @@ | ||
'use client' | ||
|
||
export function Foo() { | ||
return 'Foo' | ||
} |
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app-external/node_modules_bak/client-esm-module-wildcard-2/index.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,2 @@ | ||
export * from './foo' | ||
export * from './bar' |
7 changes: 7 additions & 0 deletions
7
test/e2e/app-dir/app-external/node_modules_bak/client-esm-module-wildcard-2/package.json
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 @@ | ||
{ | ||
"name": "client-esm-module-wildcard-2", | ||
"type": "module", | ||
"exports": { | ||
"default": "./index.js" | ||
} | ||
} |