Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change priorities so that chunk variable names take precedence over
imported variable names
- Loading branch information
1 parent
2d9cf34
commit df924ed
Showing
53 changed files
with
230 additions
and
230 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: 3 additions & 3 deletions
6
test/chunking-form/samples/basic-chunking/_expected/es/main1.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
10 changes: 5 additions & 5 deletions
10
test/chunking-form/samples/basic-chunking/_expected/es/main2.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
8 changes: 4 additions & 4 deletions
8
test/chunking-form/samples/basic-chunking/_expected/system/main1.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
12 changes: 6 additions & 6 deletions
12
test/chunking-form/samples/basic-chunking/_expected/system/main2.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
10 changes: 5 additions & 5 deletions
10
test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/es/generated-chunk2.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { a as x } from './generated-chunk.js'; | ||
import { a as x$1 } from './generated-chunk3.js'; | ||
import { a as x$1 } from './generated-chunk.js'; | ||
import { a as x$2 } from './generated-chunk3.js'; | ||
|
||
var x$2 = x + 1; | ||
var x = x$1 + 1; | ||
|
||
var y = x$1 + 1; | ||
var y = x$2 + 1; | ||
|
||
export { x$2 as a, y as b }; | ||
export { x as a, y as b }; |
10 changes: 5 additions & 5 deletions
10
...chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/generated-chunk2.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
4 changes: 2 additions & 2 deletions
4
test/chunking-form/samples/chunking-compact/_expected/es/main1.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import {a as fn}from'./generated-chunk.js';function fn$1 () { | ||
import {a as fn$1}from'./generated-chunk.js';function fn () { | ||
console.log('dep1 fn'); | ||
}class Main1 { | ||
constructor () { | ||
fn$1(); | ||
fn(); | ||
fn$1(); | ||
} | ||
}export default Main1; |
8 changes: 4 additions & 4 deletions
8
test/chunking-form/samples/chunking-compact/_expected/es/main2.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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import {a as fn$1}from'./generated-chunk.js';import {fn}from'external';function fn$2 () { | ||
import {a as fn$3}from'./generated-chunk.js';import {fn as fn$2}from'external';function fn () { | ||
console.log('lib1 fn'); | ||
fn(); | ||
}function fn$3 () { | ||
fn$2(); | ||
}function fn$1 () { | ||
fn(); | ||
console.log('dep3 fn'); | ||
}class Main2 { | ||
constructor () { | ||
fn$3(); | ||
fn$1(); | ||
fn$3(); | ||
} | ||
}export default Main2; |
4 changes: 2 additions & 2 deletions
4
test/chunking-form/samples/chunking-compact/_expected/system/main1.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
System.register(['./generated-chunk.js'],function(exports,module){'use strict';var fn;return{setters:[function(module){fn=module.a;}],execute:function(){function fn$1 () { | ||
System.register(['./generated-chunk.js'],function(exports,module){'use strict';var fn$1;return{setters:[function(module){fn$1=module.a;}],execute:function(){function fn () { | ||
console.log('dep1 fn'); | ||
}class Main1 { | ||
constructor () { | ||
fn$1(); | ||
fn(); | ||
fn$1(); | ||
} | ||
} exports('default', Main1);}}}); |
8 changes: 4 additions & 4 deletions
8
test/chunking-form/samples/chunking-compact/_expected/system/main2.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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
System.register(['./generated-chunk.js','external'],function(exports,module){'use strict';var fn$1,fn;return{setters:[function(module){fn$1=module.a;},function(module){fn=module.fn;}],execute:function(){function fn$2 () { | ||
System.register(['./generated-chunk.js','external'],function(exports,module){'use strict';var fn$3,fn$2;return{setters:[function(module){fn$3=module.a;},function(module){fn$2=module.fn;}],execute:function(){function fn () { | ||
console.log('lib1 fn'); | ||
fn(); | ||
}function fn$3 () { | ||
fn$2(); | ||
}function fn$1 () { | ||
fn(); | ||
console.log('dep3 fn'); | ||
}class Main2 { | ||
constructor () { | ||
fn$3(); | ||
fn$1(); | ||
fn$3(); | ||
} | ||
} exports('default', Main2);}}}); |
6 changes: 3 additions & 3 deletions
6
test/chunking-form/samples/chunking-externals/_expected/es/main1.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
14 changes: 7 additions & 7 deletions
14
test/chunking-form/samples/chunking-externals/_expected/es/main2.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
8 changes: 4 additions & 4 deletions
8
test/chunking-form/samples/chunking-externals/_expected/system/main1.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
16 changes: 8 additions & 8 deletions
16
test/chunking-form/samples/chunking-externals/_expected/system/main2.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
6 changes: 3 additions & 3 deletions
6
test/chunking-form/samples/chunking-source-maps/_expected/es/main1.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
test/chunking-form/samples/chunking-source-maps/_expected/es/main1.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
test/chunking-form/samples/chunking-source-maps/_expected/es/main2.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
test/chunking-form/samples/chunking-source-maps/_expected/es/main2.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.