Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure named exports are prioritized over wildcard re-exports (#7016)
- Loading branch information
1 parent
4904f20
commit 2ebed00
Showing
11 changed files
with
87 additions
and
7 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
packages/core/integration-tests/test/integration/scope-hoisting/es6/re-export-priority/a.mjs
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 const foo = 2; | ||
export * from './foo.mjs' |
2 changes: 2 additions & 0 deletions
2
packages/core/integration-tests/test/integration/scope-hoisting/es6/re-export-priority/b.mjs
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.mjs' | ||
export const foo = 2; |
2 changes: 2 additions & 0 deletions
2
...core/integration-tests/test/integration/scope-hoisting/es6/re-export-priority/entry-a.mjs
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 @@ | ||
import {foo} from './a.mjs'; | ||
output = foo; |
2 changes: 2 additions & 0 deletions
2
...core/integration-tests/test/integration/scope-hoisting/es6/re-export-priority/entry-b.mjs
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 @@ | ||
import {foo} from './b.mjs'; | ||
output = foo; |
1 change: 1 addition & 0 deletions
1
...ges/core/integration-tests/test/integration/scope-hoisting/es6/re-export-priority/foo.mjs
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 const foo = 3; |
2 changes: 2 additions & 0 deletions
2
.../integration-tests/test/integration/scope-hoisting/es6/re-export-priority/namespace-a.mjs
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 @@ | ||
import * as a from './a.mjs'; | ||
output = a; |
2 changes: 2 additions & 0 deletions
2
.../integration-tests/test/integration/scope-hoisting/es6/re-export-priority/namespace-b.mjs
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 @@ | ||
import * as b from './b.mjs'; | ||
output = b; |
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