Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
early exportMode detection, remove default indirection
- Loading branch information
1 parent
c084d4a
commit 32913d0
Showing
12 changed files
with
27 additions
and
38 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
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
4 changes: 1 addition & 3 deletions
4
test/chunking-form/samples/entry-chunk-export-mode/_expected/amd/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,7 +1,5 @@ | ||
define(['./main2.js'], function (main2) { 'use strict'; | ||
|
||
main2 = { default: main2 }; | ||
|
||
main2.default(); | ||
main2(); | ||
|
||
}); |
4 changes: 2 additions & 2 deletions
4
test/chunking-form/samples/entry-chunk-export-mode/_expected/cjs/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,5 +1,5 @@ | ||
'use strict'; | ||
|
||
var main2 = { default: require('./main2.js') }; | ||
var main2 = require('./main2.js'); | ||
|
||
main2.default(); | ||
main2(); |
4 changes: 1 addition & 3 deletions
4
test/chunking-form/samples/import-variable-duplicates/_expected/amd/head.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,9 +1,7 @@ | ||
define(['./first.js'], function (first) { 'use strict'; | ||
|
||
first = { default: first }; | ||
|
||
|
||
|
||
return first.default; | ||
return first; | ||
|
||
}); |
6 changes: 2 additions & 4 deletions
6
test/chunking-form/samples/import-variable-duplicates/_expected/amd/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,6 @@ | ||
define(['./first.js'], function (first) { 'use strict'; | ||
|
||
first = { default: first }; | ||
|
||
console.log(first.default); | ||
console.log(first.default); | ||
console.log(first); | ||
console.log(first); | ||
|
||
}); |
2 changes: 0 additions & 2 deletions
2
test/chunking-form/samples/import-variable-duplicates/_expected/amd/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,7 +1,5 @@ | ||
define(['./first.js'], function (first) { 'use strict'; | ||
|
||
first = { default: first }; | ||
|
||
|
||
|
||
}); |
4 changes: 2 additions & 2 deletions
4
test/chunking-form/samples/import-variable-duplicates/_expected/cjs/head.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,7 +1,7 @@ | ||
'use strict'; | ||
|
||
var first = { default: require('./first.js') }; | ||
var first = require('./first.js'); | ||
|
||
|
||
|
||
module.exports = first.default; | ||
module.exports = first; |
6 changes: 3 additions & 3 deletions
6
test/chunking-form/samples/import-variable-duplicates/_expected/cjs/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,6 +1,6 @@ | ||
'use strict'; | ||
|
||
var first = { default: require('./first.js') }; | ||
var first = require('./first.js'); | ||
|
||
console.log(first.default); | ||
console.log(first.default); | ||
console.log(first); | ||
console.log(first); |