Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5af718f
commit 127f191
Showing
12 changed files
with
115 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...chunking-form/samples/dynamic-import-statically-imported/_expected/amd/generated-chunk.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,17 @@ | ||
define(['require', 'exports'], function (require, exports) { 'use strict'; | ||
|
||
function foo() { | ||
console.log('dep2'); | ||
} | ||
|
||
Promise.resolve().then(function () { return dep1; }); | ||
|
||
|
||
|
||
var dep1 = /*#__PURE__*/Object.freeze({ | ||
|
||
}); | ||
|
||
exports.foo = foo; | ||
|
||
}); |
5 changes: 5 additions & 0 deletions
5
...hunking-form/samples/dynamic-import-statically-imported/_expected/amd/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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
define(['./generated-chunk.js'], function (dep1_js) { 'use strict'; | ||
|
||
|
||
|
||
}); |
5 changes: 5 additions & 0 deletions
5
test/chunking-form/samples/dynamic-import-statically-imported/_expected/amd/main.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 @@ | ||
define(['./generated-chunk.js'], function (dep1_js) { 'use strict'; | ||
|
||
dep1_js.foo(); | ||
|
||
}); |
15 changes: 15 additions & 0 deletions
15
...chunking-form/samples/dynamic-import-statically-imported/_expected/cjs/generated-chunk.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,15 @@ | ||
'use strict'; | ||
|
||
function foo() { | ||
console.log('dep2'); | ||
} | ||
|
||
Promise.resolve().then(function () { return dep1; }); | ||
|
||
|
||
|
||
var dep1 = /*#__PURE__*/Object.freeze({ | ||
|
||
}); | ||
|
||
exports.foo = foo; |
4 changes: 4 additions & 0 deletions
4
...hunking-form/samples/dynamic-import-statically-imported/_expected/cjs/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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'use strict'; | ||
|
||
require('./generated-chunk.js'); | ||
|
5 changes: 5 additions & 0 deletions
5
test/chunking-form/samples/dynamic-import-statically-imported/_expected/cjs/main.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 @@ | ||
'use strict'; | ||
|
||
var dep1_js = require('./generated-chunk.js'); | ||
|
||
dep1_js.foo(); |
13 changes: 13 additions & 0 deletions
13
.../chunking-form/samples/dynamic-import-statically-imported/_expected/es/generated-chunk.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,13 @@ | ||
function foo() { | ||
console.log('dep2'); | ||
} | ||
|
||
Promise.resolve().then(function () { return dep1; }); | ||
|
||
|
||
|
||
var dep1 = /*#__PURE__*/Object.freeze({ | ||
|
||
}); | ||
|
||
export { foo as a }; |
1 change: 1 addition & 0 deletions
1
...chunking-form/samples/dynamic-import-statically-imported/_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 |
---|---|---|
@@ -0,0 +1 @@ | ||
import './generated-chunk.js'; |
3 changes: 3 additions & 0 deletions
3
test/chunking-form/samples/dynamic-import-statically-imported/_expected/es/main.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,3 @@ | ||
import { a as foo } from './generated-chunk.js'; | ||
|
||
foo(); |
22 changes: 22 additions & 0 deletions
22
...nking-form/samples/dynamic-import-statically-imported/_expected/system/generated-chunk.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,22 @@ | ||
System.register([], function (exports, module) { | ||
'use strict'; | ||
return { | ||
execute: function () { | ||
|
||
exports('a', foo); | ||
|
||
function foo() { | ||
console.log('dep2'); | ||
} | ||
|
||
Promise.resolve().then(function () { return dep1; }); | ||
|
||
|
||
|
||
var dep1 = /*#__PURE__*/Object.freeze({ | ||
|
||
}); | ||
|
||
} | ||
}; | ||
}); |
11 changes: 11 additions & 0 deletions
11
...king-form/samples/dynamic-import-statically-imported/_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
System.register(['./generated-chunk.js'], function (exports, module) { | ||
'use strict'; | ||
return { | ||
setters: [function () {}], | ||
execute: function () { | ||
|
||
|
||
|
||
} | ||
}; | ||
}); |
14 changes: 14 additions & 0 deletions
14
test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/main.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,14 @@ | ||
System.register(['./generated-chunk.js'], function (exports, module) { | ||
'use strict'; | ||
var foo; | ||
return { | ||
setters: [function (module) { | ||
foo = module.a; | ||
}], | ||
execute: function () { | ||
|
||
foo(); | ||
|
||
} | ||
}; | ||
}); |