-
-
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.
[Symbol Propagation] Non-deterministic bundle hashes (#8212)
- Loading branch information
Showing
14 changed files
with
151 additions
and
2 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
6 changes: 6 additions & 0 deletions
6
...tion-tests/test/integration/scope-hoisting/es6/non-deterministic-bundle-hashes/index.html
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,6 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<script type="module" src="./index.js"></script> | ||
</body> | ||
</html> |
7 changes: 7 additions & 0 deletions
7
...ration-tests/test/integration/scope-hoisting/es6/non-deterministic-bundle-hashes/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,7 @@ | ||
import {foo,bar} from './library'; | ||
|
||
function other() { | ||
return foo+bar; | ||
} | ||
|
||
export {other}; |
7 changes: 7 additions & 0 deletions
7
...-tests/test/integration/scope-hoisting/es6/non-deterministic-bundle-hashes/library/bar.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,7 @@ | ||
import {baz, bag} from '../utils'; | ||
|
||
function bar() { | ||
return baz+bag; | ||
} | ||
|
||
export {bar}; |
7 changes: 7 additions & 0 deletions
7
...-tests/test/integration/scope-hoisting/es6/non-deterministic-bundle-hashes/library/foo.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,7 @@ | ||
import {bag} from '../utils'; | ||
|
||
function foo() { | ||
return bag; | ||
} | ||
|
||
export {foo}; |
2 changes: 2 additions & 0 deletions
2
...ests/test/integration/scope-hoisting/es6/non-deterministic-bundle-hashes/library/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,2 @@ | ||
export {foo} from './foo'; | ||
export {bar} from './bar'; |
3 changes: 3 additions & 0 deletions
3
.../test/integration/scope-hoisting/es6/non-deterministic-bundle-hashes/library/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,3 @@ | ||
{ | ||
"sideEffects": false | ||
} |
7 changes: 7 additions & 0 deletions
7
...on-tests/test/integration/scope-hoisting/es6/non-deterministic-bundle-hashes/utils/bag.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,7 @@ | ||
export function bag() { | ||
return 'bag'; | ||
}; | ||
|
||
export function baz() { | ||
return bag() + 'baz'; | ||
} |
Empty file.
2 changes: 2 additions & 0 deletions
2
...-tests/test/integration/scope-hoisting/es6/non-deterministic-bundle-hashes/utils/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,2 @@ | ||
export * from './bag'; | ||
export * from './empty'; |
3 changes: 3 additions & 0 deletions
3
...ts/test/integration/scope-hoisting/es6/non-deterministic-bundle-hashes/utils/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,3 @@ | ||
{ | ||
"sideEffects": false | ||
} |
Empty file.
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