-
-
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.
ScopeHoistingPackager: Wrap assets when any ancestor is wrapped (#7883)
* Add test for wrapping assets, even if the first ancestor is not * ScopeHoistingPackager: Handle different wrapped ancestries in wrapping dfs
- Loading branch information
Will Binns-Smith
authored
Apr 11, 2022
1 parent
af7bada
commit 2b0b677
Showing
8 changed files
with
64 additions
and
7 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
4 changes: 4 additions & 0 deletions
4
...re/integration-tests/test/integration/scope-hoisting/es6/multiple-ancestors-wrap/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,4 @@ | ||
import value from './shouldBeWrapped'; | ||
import otherValue from './wraps'; | ||
|
||
output = [value, otherValue]; |
1 change: 1 addition & 0 deletions
1
...tion-tests/test/integration/scope-hoisting/es6/multiple-ancestors-wrap/shouldBeWrapped.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 42; |
5 changes: 5 additions & 0 deletions
5
...re/integration-tests/test/integration/scope-hoisting/es6/multiple-ancestors-wrap/wraps.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 @@ | ||
import value from './shouldBeWrapped'; | ||
|
||
eval('void 0'); | ||
|
||
export default value + 1; |
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