-
-
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.
Fix dependency retargeting with ambiguous reexports (#9380)
- Loading branch information
Showing
10 changed files
with
78 additions
and
27 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
3 changes: 3 additions & 0 deletions
3
...re/integration-tests/test/integration/scope-hoisting/es6/re-export-all-ambiguous/entry.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 @@ | ||
if (Date.now() > 0) { | ||
output = require("./index.js").default; | ||
} |
3 changes: 3 additions & 0 deletions
3
...re/integration-tests/test/integration/scope-hoisting/es6/re-export-all-ambiguous/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,3 @@ | ||
import { b,c } from "./lib"; | ||
|
||
export default b + " " + c; |
2 changes: 2 additions & 0 deletions
2
...re/integration-tests/test/integration/scope-hoisting/es6/re-export-all-ambiguous/lib-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 @@ | ||
module.exports = {}; | ||
// export const a = 89; |
1 change: 1 addition & 0 deletions
1
...re/integration-tests/test/integration/scope-hoisting/es6/re-export-all-ambiguous/lib-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 @@ | ||
export const b = 123; |
1 change: 1 addition & 0 deletions
1
...re/integration-tests/test/integration/scope-hoisting/es6/re-export-all-ambiguous/lib-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 @@ | ||
export { c2 as c } from "./lib-c2.js"; |
1 change: 1 addition & 0 deletions
1
...e/integration-tests/test/integration/scope-hoisting/es6/re-export-all-ambiguous/lib-c2.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 const c2 = 999; |
3 changes: 3 additions & 0 deletions
3
...core/integration-tests/test/integration/scope-hoisting/es6/re-export-all-ambiguous/lib.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 * from "./lib-a"; | ||
export * from "./lib-b"; | ||
export * from "./lib-c"; |
10 changes: 10 additions & 0 deletions
10
...ntegration-tests/test/integration/scope-hoisting/es6/re-export-all-ambiguous/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,10 @@ | ||
{ | ||
"sideEffects": [ | ||
"entry.js", | ||
"index.js", | ||
"lib-a.js", | ||
"lib-b.js", | ||
"lib-c2.js", | ||
"lib.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