Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for wrapping assets, even if the first ancestor is not
- Loading branch information
Will Binns-Smith
committed
Mar 31, 2022
1 parent
80c728c
commit eda0627
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
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