Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle side-effects next to side-effect-free default exports in case …
…the default export is reexported (#3602)
- Loading branch information
1 parent
ca0854e
commit 41778fe
Showing
3 changed files
with
8 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
1 change: 1 addition & 0 deletions
1
test/form/samples/side-effect-default-reexport/default-export/reexport.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 @@ | ||
export { default as Menu } from './index'; |
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,8 +1,7 @@ | ||
import DefaultExport from './default-export/index.js'; | ||
import { Menu as DefaultExport } from './default-export/reexport.js'; | ||
console.log('test-package-default-export', DefaultExport.Item); | ||
|
||
import { Menu as NamedExport } from './named-export/index.js'; | ||
console.log('test-package-named-export', NamedExport.Item); | ||
|
||
export { default } from './default-export2/index.js'; | ||
|