From 127f191a9aec3e00cbab097fd839cca0bf61a945 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sat, 2 Feb 2019 20:02:59 -0500 Subject: [PATCH] add expected test output --- .../_expected/amd/generated-chunk.js | 17 ++++++++++++++ .../_expected/amd/generated-chunk2.js | 5 +++++ .../_expected/amd/main.js | 5 +++++ .../_expected/cjs/generated-chunk.js | 15 +++++++++++++ .../_expected/cjs/generated-chunk2.js | 4 ++++ .../_expected/cjs/main.js | 5 +++++ .../_expected/es/generated-chunk.js | 13 +++++++++++ .../_expected/es/generated-chunk2.js | 1 + .../_expected/es/main.js | 3 +++ .../_expected/system/generated-chunk.js | 22 +++++++++++++++++++ .../_expected/system/generated-chunk2.js | 11 ++++++++++ .../_expected/system/main.js | 14 ++++++++++++ 12 files changed, 115 insertions(+) create mode 100644 test/chunking-form/samples/dynamic-import-statically-imported/_expected/amd/generated-chunk.js create mode 100644 test/chunking-form/samples/dynamic-import-statically-imported/_expected/amd/generated-chunk2.js create mode 100644 test/chunking-form/samples/dynamic-import-statically-imported/_expected/amd/main.js create mode 100644 test/chunking-form/samples/dynamic-import-statically-imported/_expected/cjs/generated-chunk.js create mode 100644 test/chunking-form/samples/dynamic-import-statically-imported/_expected/cjs/generated-chunk2.js create mode 100644 test/chunking-form/samples/dynamic-import-statically-imported/_expected/cjs/main.js create mode 100644 test/chunking-form/samples/dynamic-import-statically-imported/_expected/es/generated-chunk.js create mode 100644 test/chunking-form/samples/dynamic-import-statically-imported/_expected/es/generated-chunk2.js create mode 100644 test/chunking-form/samples/dynamic-import-statically-imported/_expected/es/main.js create mode 100644 test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/generated-chunk.js create mode 100644 test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/generated-chunk2.js create mode 100644 test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/main.js diff --git a/test/chunking-form/samples/dynamic-import-statically-imported/_expected/amd/generated-chunk.js b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/amd/generated-chunk.js new file mode 100644 index 00000000000..15dd9c72b0f --- /dev/null +++ b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/amd/generated-chunk.js @@ -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; + +}); diff --git a/test/chunking-form/samples/dynamic-import-statically-imported/_expected/amd/generated-chunk2.js b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/amd/generated-chunk2.js new file mode 100644 index 00000000000..539318e54a8 --- /dev/null +++ b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/amd/generated-chunk2.js @@ -0,0 +1,5 @@ +define(['./generated-chunk.js'], function (dep1_js) { 'use strict'; + + + +}); diff --git a/test/chunking-form/samples/dynamic-import-statically-imported/_expected/amd/main.js b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/amd/main.js new file mode 100644 index 00000000000..0aa45b36dfc --- /dev/null +++ b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/amd/main.js @@ -0,0 +1,5 @@ +define(['./generated-chunk.js'], function (dep1_js) { 'use strict'; + + dep1_js.foo(); + +}); diff --git a/test/chunking-form/samples/dynamic-import-statically-imported/_expected/cjs/generated-chunk.js b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/cjs/generated-chunk.js new file mode 100644 index 00000000000..d6330bef760 --- /dev/null +++ b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/cjs/generated-chunk.js @@ -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; diff --git a/test/chunking-form/samples/dynamic-import-statically-imported/_expected/cjs/generated-chunk2.js b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/cjs/generated-chunk2.js new file mode 100644 index 00000000000..cd3e1d69188 --- /dev/null +++ b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/cjs/generated-chunk2.js @@ -0,0 +1,4 @@ +'use strict'; + +require('./generated-chunk.js'); + diff --git a/test/chunking-form/samples/dynamic-import-statically-imported/_expected/cjs/main.js b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/cjs/main.js new file mode 100644 index 00000000000..ee0861141cb --- /dev/null +++ b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/cjs/main.js @@ -0,0 +1,5 @@ +'use strict'; + +var dep1_js = require('./generated-chunk.js'); + +dep1_js.foo(); diff --git a/test/chunking-form/samples/dynamic-import-statically-imported/_expected/es/generated-chunk.js b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/es/generated-chunk.js new file mode 100644 index 00000000000..10f208bf5c2 --- /dev/null +++ b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/es/generated-chunk.js @@ -0,0 +1,13 @@ +function foo() { + console.log('dep2'); +} + +Promise.resolve().then(function () { return dep1; }); + + + +var dep1 = /*#__PURE__*/Object.freeze({ + +}); + +export { foo as a }; diff --git a/test/chunking-form/samples/dynamic-import-statically-imported/_expected/es/generated-chunk2.js b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/es/generated-chunk2.js new file mode 100644 index 00000000000..5d03e846db5 --- /dev/null +++ b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/es/generated-chunk2.js @@ -0,0 +1 @@ +import './generated-chunk.js'; diff --git a/test/chunking-form/samples/dynamic-import-statically-imported/_expected/es/main.js b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/es/main.js new file mode 100644 index 00000000000..8e1d275e245 --- /dev/null +++ b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/es/main.js @@ -0,0 +1,3 @@ +import { a as foo } from './generated-chunk.js'; + +foo(); diff --git a/test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/generated-chunk.js b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/generated-chunk.js new file mode 100644 index 00000000000..89344475827 --- /dev/null +++ b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/generated-chunk.js @@ -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({ + + }); + + } + }; +}); diff --git a/test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/generated-chunk2.js b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/generated-chunk2.js new file mode 100644 index 00000000000..fd707ad411c --- /dev/null +++ b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/generated-chunk2.js @@ -0,0 +1,11 @@ +System.register(['./generated-chunk.js'], function (exports, module) { + 'use strict'; + return { + setters: [function () {}], + execute: function () { + + + + } + }; +}); diff --git a/test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/main.js b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/main.js new file mode 100644 index 00000000000..384d52c4c4b --- /dev/null +++ b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/main.js @@ -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(); + + } + }; +});