-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Retain correct dependency order between imports and reexports without…
… scopehoisting (#8591)
- Loading branch information
Showing
6 changed files
with
124 additions
and
83 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
packages/core/integration-tests/test/integration/js-import-reexport-dep-order/a.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 @@ | ||
sideEffect("a"); | ||
export const a = "a"; |
2 changes: 2 additions & 0 deletions
2
packages/core/integration-tests/test/integration/js-import-reexport-dep-order/b.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 @@ | ||
sideEffect("b"); | ||
export const b = "b"; |
2 changes: 2 additions & 0 deletions
2
packages/core/integration-tests/test/integration/js-import-reexport-dep-order/c.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 @@ | ||
sideEffect("c"); | ||
export const c = "c"; |
5 changes: 5 additions & 0 deletions
5
packages/core/integration-tests/test/integration/js-import-reexport-dep-order/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,5 @@ | ||
export * from './a' | ||
|
||
export {b} from './b' | ||
|
||
import './c' |
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