webpack icon indicating copy to clipboard operation
webpack copied to clipboard

Amd optimizations (AMD for code-split chunks)

Open sandersonatlatitude opened this issue 6 years ago • 4 comments

I am looking to update webpack to increase AMD performance for chunk dependencies.

See https://github.com/webpack/webpack/issues/5489

I have a proof of concept working, but realize it will probably take a some more work to get this PR working correctly.

To this end i was hoping I could get some review/ feedback on the best way to proceed.

sandersonatlatitude avatar Feb 26 '19 23:02 sandersonatlatitude

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

jsf-clabot avatar Feb 26 '19 23:02 jsf-clabot

For maintainers only:

  • [ ] This need to be documented (issue in webpack/webpack.js.org will be filed when merged)

webpack-bot avatar Feb 26 '19 23:02 webpack-bot

The basic integration tests failed.

@sandersonatlatitude Please review the following output log for errors:

 FAIL  test/TestCasesNormal.test.js (17.921s)
  ● TestCases › normal › errors › crash-missing-import › crash-missing-import should compile

    More errors while compiling than expected:

    ./errors/crash-missing-import/a.js
    Module not found: Error: Can't resolve './missing' in '/home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import'
    resolve './missing' in '/home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import'
      using description file: /home/travis/build/webpack/webpack/package.json (relative path: ./test/cases/errors/crash-missing-import)
        Field 'browser' doesn't contain a valid alias configuration
        using description file: /home/travis/build/webpack/webpack/package.json (relative path: ./test/cases/errors/crash-missing-import/missing)
          no extension
            Field 'browser' doesn't contain a valid alias configuration
            /home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import/missing doesn't exist
          .mjs
            Field 'browser' doesn't contain a valid alias configuration
            /home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import/missing.mjs doesn't exist
          .webpack.js
            Field 'browser' doesn't contain a valid alias configuration
            /home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import/missing.webpack.js doesn't exist
          .web.js
            Field 'browser' doesn't contain a valid alias configuration
            /home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import/missing.web.js doesn't exist
          .js
            Field 'browser' doesn't contain a valid alias configuration
            /home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import/missing.js doesn't exist
          .json
            Field 'browser' doesn't contain a valid alias configuration
            /home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import/missing.json doesn't exist
          as directory
            /home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import/missing doesn't exist
    [/home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import/missing]
    [/home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import/missing.mjs]
    [/home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import/missing.webpack.js]
    [/home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import/missing.web.js]
    [/home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import/missing.js]
    [/home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import/missing.json]
     @ ./errors/crash-missing-import/a.js 1:0-30 3:0-1
     @ ./errors/crash-missing-import/index.js

    chunk main [entry]
    bundle.js
    /home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import/a.js
    Cannot read property 'externalType' of null
    TypeError: /home/travis/build/webpack/webpack/test/cases/errors/crash-missing-import/a.js
    Cannot read property 'externalType' of null

      161 | 			callContext: !dep.directImport,
      162 | 			importVar:
    > 163 | 				dep._module.externalType !== "amd"
          | 				            ^
      164 | 					? dep.getImportVar()
      165 | 					: `__WEBPACK_EXTERNAL_MODULE_${Template.toIdentifier(
      166 | 							`${dep._module.request}`

      at HarmonyImportSpecifierDependencyTemplate.getContent (lib/dependencies/HarmonyImportSpecifierDependency.js:163:17)
      at HarmonyImportSpecifierDependencyTemplate.apply (lib/dependencies/HarmonyImportSpecifierDependency.js:149:24)
      at JavascriptGenerator.sourceDependency (lib/JavascriptGenerator.js:171:12)
      at JavascriptGenerator.sourceBlock (lib/JavascriptGenerator.js:64:9)
      at JavascriptGenerator.generate (lib/JavascriptGenerator.js:28:8)
      at NormalModule.source (lib/NormalModule.js:500:33)
      at ModuleTemplate.render (lib/ModuleTemplate.js:54:32)
      at modules.map.module (lib/Template.js:233:28)
          at Array.map (<anonymous>)
      at Function.renderChunkModules (lib/Template.js:230:30)
      at compilation.mainTemplate.hooks.modules.tap (lib/JavascriptModulesPlugin.js:87:23)
      at SyncWaterfallHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:16)
      at SyncWaterfallHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at MainTemplate.hooks.render.tap (lib/MainTemplate.js:160:25)
      at SyncWaterfallHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:16)
      at SyncWaterfallHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20). Check expected warnings: errors
      at checkArrayExpectation (test/checkArrayExpectation.js:27:6)
      at webpack (test/TestCases.template.js:189:12)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at asyncLib.forEachLimit.err (lib/Compiler.js:432:27)
      at Object.eachLimit (node_modules/neo-async/async.js:3461:14)
      at emitFiles (lib/Compiler.js:321:13)
      at node_modules/mkdirp/index.js:30:20
Show remaining errors
  ● TestCases › normal › errors › harmony-import-missing › harmony-import-missing should compile

    More errors while compiling than expected:

    ./errors/harmony-import-missing/module.js
    Module not found: Error: Can't resolve './missing' in '/home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing'
    resolve './missing' in '/home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing'
      using description file: /home/travis/build/webpack/webpack/package.json (relative path: ./test/cases/errors/harmony-import-missing)
        Field 'browser' doesn't contain a valid alias configuration
        using description file: /home/travis/build/webpack/webpack/package.json (relative path: ./test/cases/errors/harmony-import-missing/missing)
          no extension
            Field 'browser' doesn't contain a valid alias configuration
            /home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing/missing doesn't exist
          .mjs
            Field 'browser' doesn't contain a valid alias configuration
            /home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing/missing.mjs doesn't exist
          .webpack.js
            Field 'browser' doesn't contain a valid alias configuration
            /home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing/missing.webpack.js doesn't exist
          .web.js
            Field 'browser' doesn't contain a valid alias configuration
            /home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing/missing.web.js doesn't exist
          .js
            Field 'browser' doesn't contain a valid alias configuration
            /home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing/missing.js doesn't exist
          .json
            Field 'browser' doesn't contain a valid alias configuration
            /home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing/missing.json doesn't exist
          as directory
            /home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing/missing doesn't exist
    [/home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing/missing]
    [/home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing/missing.mjs]
    [/home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing/missing.webpack.js]
    [/home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing/missing.web.js]
    [/home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing/missing.js]
    [/home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing/missing.json]
     @ ./errors/harmony-import-missing/module.js 1:0-26 1:0-26
     @ ./errors/harmony-import-missing/index.js

    chunk main [entry]
    bundle.js
    /home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing/module.js
    Cannot read property 'externalType' of null
    TypeError: /home/travis/build/webpack/webpack/test/cases/errors/harmony-import-missing/module.js
    Cannot read property 'externalType' of null

      458 | 		const importedModule = dep._module;
      459 | 		const importVar =
    > 460 | 			dep._module.externalType !== "amd"
          | 			            ^
      461 | 				? dep.getImportVar()
      462 | 				: `__WEBPACK_EXTERNAL_MODULE_${Template.toIdentifier(
      463 | 						dep._module.request

      at HarmonyExportImportedSpecifierDependencyTemplate.getContent (lib/dependencies/HarmonyExportImportedSpecifierDependency.js:460:16)
      at HarmonyExportImportedSpecifierDependencyTemplate.harmonyInit (lib/dependencies/HarmonyExportImportedSpecifierDependency.js:412:24)
      at HarmonyInitDependencyTemplate.apply (lib/dependencies/HarmonyInitDependency.js:52:18)
      at JavascriptGenerator.sourceDependency (lib/JavascriptGenerator.js:171:12)
      at JavascriptGenerator.sourceBlock (lib/JavascriptGenerator.js:64:9)
      at JavascriptGenerator.generate (lib/JavascriptGenerator.js:28:8)
      at NormalModule.source (lib/NormalModule.js:500:33)
      at ModuleTemplate.render (lib/ModuleTemplate.js:54:32)
      at modules.map.module (lib/Template.js:233:28)
          at Array.map (<anonymous>)
      at Function.renderChunkModules (lib/Template.js:230:30)
      at compilation.mainTemplate.hooks.modules.tap (lib/JavascriptModulesPlugin.js:87:23)
      at SyncWaterfallHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:16)
      at SyncWaterfallHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at MainTemplate.hooks.render.tap (lib/MainTemplate.js:160:25)
      at SyncWaterfallHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:16). Check expected warnings: errors
      at checkArrayExpectation (test/checkArrayExpectation.js:27:6)
      at webpack (test/TestCases.template.js:189:12)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at asyncLib.forEachLimit.err (lib/Compiler.js:432:27)
      at Object.eachLimit (node_modules/neo-async/async.js:3461:14)
      at emitFiles (lib/Compiler.js:321:13)
      at node_modules/mkdirp/index.js:30:20

 FAIL  test/ConfigTestCases.test.js (21.173s)
  ● ConfigTestCases › scope-hoisting › esModule › exported tests › should have the __esModule flag

    expect(received).toBe(expected) // Object.is equality

    Expected: true
    Received: undefined

    Difference:

      Comparing two different types of values. Expected boolean but received undefined.

      151 | it("should have the __esModule flag", () => {
      152 | 	return __webpack_require__.e(/*! import() */ 0).then(__webpack_require__.bind(null, /*! ./module */ "./module.js")).then(mod => {
    > 153 | 		expect(mod.__esModule).toBe(true);
          | 		                       ^
      154 | 		expect(mod.default).toBe(84);
      155 | 	})
      156 | })

      at __webpack_require__.e.then.then.mod (test/js/config/scope-hoisting/esModule/bundle0.js:153:26)

  ● ConfigTestCases › web › prefetch-preload › exported tests › should prefetch and preload child chunks on chunk load

    expect(received).toBeTypeOf(expected)

    Expected value to be (using typeof):
      "function"
    Received:
      "undefined"

      298 | 	expect(script.getAttribute("nonce")).toBe("nonce")
      299 | 	expect(script.crossOrigin).toBe("anonymous");
    > 300 | 	expect(script.onload).toBeTypeOf("function");
          | 	                      ^
      301 | 
      302 | 	// Test preload of chunk1-b
      303 | 	link = document.head._children[2];

      at it (test/js/config/web/prefetch-preload/bundle0.js:300:24)
      at Object.<anonymous> (test/helpers/createLazyTestEnv.js:12:13)

 FAIL  test/StatsTestCases.test.js (7.719s)
  ● StatsTestCases › should print correct stats for aggressive-splitting-entry

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for aggressive-splitting-entry 1".

    - Snapshot
    + Received

    @@ -1,20 +1,20 @@
    - "Hash: 6b5ddd5d48acc0426e7a6b5ddd5d48acc0426e7a
    + "Hash: 78ff2fcea505b5cc6de978ff2fcea505b5cc6de9
      Child fitting:
    -     Hash: 6b5ddd5d48acc0426e7a
    +     Hash: 78ff2fcea505b5cc6de9
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                            Asset      Size  Chunks             Chunk Names
          33966214360bbbb31383.js  1.94 KiB       2  [emitted]  
          445d4c6a1d7381d6cb2c.js  1.94 KiB       3  [emitted]  
    +     48fb83c35905ecb5f2f6.js    11 KiB       1  [emitted]  
          d4b551c6319035df2898.js  1.05 KiB       0  [emitted]  
    -     ed31350d9c86da6a8353.js    11 KiB       1  [emitted]  
    -     Entrypoint main = 33966214360bbbb31383.js 445d4c6a1d7381d6cb2c.js ed31350d9c86da6a8353.js
    +     Entrypoint main = 33966214360bbbb31383.js 445d4c6a1d7381d6cb2c.js 48fb83c35905ecb5f2f6.js
          chunk    {0} d4b551c6319035df2898.js 916 bytes <{1}> <{2}> <{3}>
              > ./g [4] ./index.js 7:0-13
           [7] ./g.js 916 bytes {0} [built]
    -     chunk    {1} ed31350d9c86da6a8353.js 1.87 KiB ={2}= ={3}= >{0}< [entry] [rendered]
    +     chunk    {1} 48fb83c35905ecb5f2f6.js 1.87 KiB ={2}= ={3}= >{0}< [entry] [rendered]
              > ./index main
           [3] ./e.js 899 bytes {1} [built]
           [4] ./index.js 111 bytes {1} [built]
           [6] ./f.js 900 bytes {1} [built]
          chunk    {2} 33966214360bbbb31383.js 1.76 KiB ={1}= ={3}= >{0}< [initial] [rendered] [recorded] aggressive splitted
    @@ -24,23 +24,23 @@
          chunk    {3} 445d4c6a1d7381d6cb2c.js 1.76 KiB ={1}= ={2}= >{0}< [initial] [rendered] [recorded] aggressive splitted
              > ./index main
           [1] ./c.js 899 bytes {3} [built]
           [2] ./d.js 899 bytes {3} [built]
      Child content-change:
    -     Hash: 6b5ddd5d48acc0426e7a
    +     Hash: 78ff2fcea505b5cc6de9
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                            Asset      Size  Chunks             Chunk Names
          33966214360bbbb31383.js  1.94 KiB       2  [emitted]  
          445d4c6a1d7381d6cb2c.js  1.94 KiB       3  [emitted]  
    +     48fb83c35905ecb5f2f6.js    11 KiB       1  [emitted]  
          d4b551c6319035df2898.js  1.05 KiB       0  [emitted]  
    -     ed31350d9c86da6a8353.js    11 KiB       1  [emitted]  
    -     Entrypoint main = 33966214360bbbb31383.js 445d4c6a1d7381d6cb2c.js ed31350d9c86da6a8353.js
    +     Entrypoint main = 33966214360bbbb31383.js 445d4c6a1d7381d6cb2c.js 48fb83c35905ecb5f2f6.js
          chunk    {0} d4b551c6319035df2898.js 916 bytes <{1}> <{2}> <{3}>
              > ./g [4] ./index.js 7:0-13
           [7] ./g.js 916 bytes {0} [built]
    -     chunk    {1} ed31350d9c86da6a8353.js 1.87 KiB ={2}= ={3}= >{0}< [entry] [rendered]
    +     chunk    {1} 48fb83c35905ecb5f2f6.js 1.87 KiB ={2}= ={3}= >{0}< [entry] [rendered]
              > ./index main
           [3] ./e.js 899 bytes {1} [built]
           [4] ./index.js 111 bytes {1} [built]
           [6] ./f.js 900 bytes {1} [built]
          chunk    {2} 33966214360bbbb31383.js 1.76 KiB ={1}= ={3}= >{0}< [initial] [rendered] [recorded] aggressive splitted

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/MultiCompiler.js:247:12)
      at runWithDependencies.err (lib/MultiCompiler.js:270:6)
      at done (node_modules/neo-async/async.js:2928:13)
      at runCompilers (lib/MultiCompiler.js:174:48)
      at err (lib/MultiCompiler.js:181:7)
      at compiler.run (lib/MultiCompiler.js:263:7)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for aggressive-splitting-on-demand

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for aggressive-splitting-on-demand 1".

    - Snapshot
    + Received

    @@ -1,22 +1,22 @@
    - "Hash: f682b6dfa3cec23b4fff
    + "Hash: d5266d98bdfbb87a8241
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
                        Asset      Size  Chunks             Chunk Names
      01a8254701931adbf278.js  1.01 KiB       9  [emitted]  
      07830cd8072d83cdc6ad.js  1.01 KiB      10  [emitted]  
    - 1cd3a64e15add49c06d8.js  9.64 KiB       4  [emitted]  main
      2736cf9d79233cd0a9b6.js  1.93 KiB       0  [emitted]  
      29de52df747b400f6177.js     1 KiB       1  [emitted]  
      41be79832883258c21e6.js  1.94 KiB       6  [emitted]  
      43c1ac24102c075ecb2d.js  1.94 KiB    3, 1  [emitted]  
      5bc7f208cd99a83b4e33.js  1.94 KiB       8  [emitted]  
    + 603501de6109d2920afc.js  9.63 KiB       4  [emitted]  main
      7f83e5c2f4e52435dd2c.js  1.96 KiB       2  [emitted]  
      ba9fedb7aa0c69201639.js  1.94 KiB      11  [emitted]  
      d40ae25f5e7ef09d2e24.js  1.94 KiB   7, 10  [emitted]  
      e5fb899955fa03a8053b.js  1.94 KiB       5  [emitted]  
    - Entrypoint main = 1cd3a64e15add49c06d8.js
    + Entrypoint main = 603501de6109d2920afc.js
      chunk    {0} 2736cf9d79233cd0a9b6.js 1.76 KiB <{4}> ={1}= ={2}= ={3}= ={6}= ={10}= [recorded] aggressive splitted
          > ./b ./d ./e ./f ./g [11] ./index.js 5:0-44
          > ./b ./d ./e ./f ./g ./h ./i ./j ./k [11] ./index.js 6:0-72
       [0] ./b.js 899 bytes {0} {5} [built]
       [1] ./d.js 899 bytes {0} {8} [built]
    @@ -32,11 +32,11 @@
       [4] ./g.js 901 bytes {2} [built]
      chunk    {3} 43c1ac24102c075ecb2d.js 1.76 KiB <{4}> ={0}= ={2}= ={6}= ={10}= [rendered] [recorded] aggressive splitted
          > ./b ./d ./e ./f ./g ./h ./i ./j ./k [11] ./index.js 6:0-72
       [2] ./e.js 899 bytes {1} {3} [built]
       [6] ./h.js 899 bytes {3} {11} [built]
    - chunk    {4} 1cd3a64e15add49c06d8.js (main) 248 bytes >{0}< >{1}< >{2}< >{3}< >{5}< >{6}< >{7}< >{8}< >{9}< >{10}< >{11}< [entry] [rendered]
    + chunk    {4} 603501de6109d2920afc.js (main) 248 bytes >{0}< >{1}< >{2}< >{3}< >{5}< >{6}< >{7}< >{8}< >{9}< >{10}< >{11}< [entry] [rendered]
          > ./index main
       [11] ./index.js 248 bytes {4} [built]
      chunk    {5} e5fb899955fa03a8053b.js 1.76 KiB <{4}>
          > ./b ./c [11] ./index.js 2:0-23
       [0] ./b.js 899 bytes {0} {5} [built]

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for chunks

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for chunks 1".

    - Snapshot
    + Received

    @@ -1,13 +1,13 @@
    - "Hash: 34cad0d1897c8ba31143
    + "Hash: ce7b087522b4ca92a76b
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
            Asset       Size  Chunks             Chunk Names
      1.bundle.js  232 bytes       1  [emitted]  
      2.bundle.js  152 bytes       2  [emitted]  
      3.bundle.js  289 bytes       3  [emitted]  
    -   bundle.js   8.23 KiB       0  [emitted]  main
    +   bundle.js   8.21 KiB       0  [emitted]  main
      Entrypoint main = bundle.js
      chunk    {0} bundle.js (main) 73 bytes >{2}< >{3}< [entry] [rendered]
          > ./index main
       [0] ./index.js 51 bytes {0} [built]
           single entry ./index  main

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for chunks-development

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for chunks-development 1".

    - Snapshot
    + Received

    @@ -1,13 +1,13 @@
    - "Hash: 7192da34b98e59fe39b2
    + "Hash: e3fad5f77eea2d6cc464
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
            Asset       Size  Chunks             Chunk Names
      0.bundle.js  588 bytes       0  [emitted]  
      1.bundle.js  297 bytes       1  [emitted]  
      2.bundle.js  433 bytes       2  [emitted]  
    -   bundle.js   8.61 KiB    main  [emitted]  main
    +   bundle.js   8.59 KiB    main  [emitted]  main
      Entrypoint main = bundle.js
      chunk    {0} 0.bundle.js 60 bytes <{2}> [rendered]
          > [./c.js] ./c.js 1:0-52
       [./d.js] 22 bytes {0} [built]
           require.ensure item ./d [./c.js] 1:0-52

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)

  ● StatsTestCases › should print correct stats for import-context-filter

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for import-context-filter 1".

    - Snapshot
    + Received

    @@ -1,13 +1,13 @@
    - "Hash: cbf8fc5e9562c9249823
    + "Hash: 5f6f3b0f8689e4269095
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
         Asset       Size  Chunks             Chunk Names
          0.js  305 bytes       0  [emitted]  
          1.js  314 bytes       1  [emitted]  
          2.js  308 bytes       2  [emitted]  
    - entry.js   9.05 KiB       3  [emitted]  entry
    + entry.js   9.03 KiB       3  [emitted]  entry
      Entrypoint entry = entry.js
      [0] ./templates/bar.js 38 bytes {0} [optional] [built]
      [1] ./templates/baz.js 38 bytes {1} [optional] [built]
      [2] ./templates/foo.js 38 bytes {2} [optional] [built]
      [3] ./entry.js 450 bytes {3} [built]

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at asyncLib.forEachLimit.err (lib/Compiler.js:432:27)
      at node_modules/neo-async/async.js:2813:7
      at done (node_modules/neo-async/async.js:3521:9)
      at node_modules/graceful-fs/graceful-fs.js:43:10
      at node_modules/graceful-fs/graceful-fs.js:43:10

  ● StatsTestCases › should print correct stats for import-weak

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for import-weak 1".

    - Snapshot
    + Received

    - "Hash: 818b39ea7c5c1ff94df3
    + "Hash: 07399b0cb9a171848b71
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
         Asset       Size  Chunks             Chunk Names
          1.js  149 bytes       1  [emitted]  
    - entry.js   8.47 KiB       0  [emitted]  entry
    + entry.js   8.46 KiB       0  [emitted]  entry
      Entrypoint entry = entry.js
      [0] ./modules/b.js 22 bytes {1} [built]
      [1] ./entry.js 120 bytes {0} [built]
      [2] ./modules/a.js 37 bytes [built]"

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at asyncLib.forEachLimit.err (lib/Compiler.js:432:27)
      at node_modules/neo-async/async.js:2813:7
      at done (node_modules/neo-async/async.js:3521:9)
      at node_modules/graceful-fs/graceful-fs.js:43:10
      at node_modules/graceful-fs/graceful-fs.js:43:10

  ● StatsTestCases › should print correct stats for issue-7577

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for issue-7577 1".

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: 3a382f7c6759b0401b6ff9bcd7c310309db5b68ce2bf53b0bf1432b722d8
    + "Hash: 3a382f7c6759b0401b6ff9bcd7c310309db5b68cc9dc228ff7f3028b66d5
      Child
          Hash: 3a382f7c6759b0401b6f
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                                           Asset       Size        Chunks             Chunk Names
    @@ -20,18 +20,18 @@
          b-vendors~main-f7664221ad5d986cf06a.js  163 bytes  vendors~main  [emitted]  vendors~main
          Entrypoint main = b-runtime~main-7b4918090cfe19b7778a.js b-vendors~main-f7664221ad5d986cf06a.js b-all~main-3f0b62a9e243706ccaf8.js b-main-09f4ddfc4098d7f3f188.js
          [0] ./node_modules/vendor.js 23 bytes {vendors~main} [built]
          [1] ./b.js 17 bytes {all~main} [built]
      Child
    -     Hash: e2bf53b0bf1432b722d8
    +     Hash: c9dc228ff7f3028b66d5
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                                           Asset       Size        Chunks             Chunk Names
                     c-0-5b8bdddff2dcbbac44bf.js  450 bytes             0  [emitted]  
                     c-1-5eacbd7fee2224716029.js  153 bytes             1  [emitted]  
              c-all~main-3de9f206741c28715d19.js  305 bytes      all~main  [emitted]  all~main
                  c-main-75156155081cda3092db.js  114 bytes          main  [emitted]  main
    -     c-runtime~main-a95c7b9d72f76dc9feef.js   8.78 KiB  runtime~main  [emitted]  runtime~main
    -     Entrypoint main = c-runtime~main-a95c7b9d72f76dc9feef.js c-all~main-3de9f206741c28715d19.js c-main-75156155081cda3092db.js (prefetch: c-1-5eacbd7fee2224716029.js c-0-5b8bdddff2dcbbac44bf.js)
    +     c-runtime~main-b23ab0c4f5e1c429ba64.js   8.77 KiB  runtime~main  [emitted]  runtime~main
    +     Entrypoint main = c-runtime~main-b23ab0c4f5e1c429ba64.js c-all~main-3de9f206741c28715d19.js c-main-75156155081cda3092db.js (prefetch: c-1-5eacbd7fee2224716029.js c-0-5b8bdddff2dcbbac44bf.js)
          [0] ./b.js 17 bytes {0} [built]
          [1] ./c.js 61 bytes {all~main} [built]
          [2] ./node_modules/vendor.js 23 bytes {1} [built]"

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/MultiCompiler.js:247:12)
      at runWithDependencies.err (lib/MultiCompiler.js:270:6)
      at done (node_modules/neo-async/async.js:2928:13)
      at runCompilers (lib/MultiCompiler.js:174:48)
      at err (lib/MultiCompiler.js:181:7)
      at compiler.run (lib/MultiCompiler.js:263:7)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for limit-chunk-count-plugin

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for limit-chunk-count-plugin 1".

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: 4c228d725cbf3eab49b0c4c4e0337021c38dadbfe19eb8024444df3ec45e8ce9ff5edae99037259a
    + "Hash: 4c228d725cbf3eab49b0697e3da34702e6283083cafc05c7e4657f0c8cd2b1d9585ea44692b97de7
      Child 1 chunks:
          Hash: 4c228d725cbf3eab49b0
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset      Size  Chunks             Chunk Names
    @@ -12,33 +12,33 @@
           [2] ./b.js 22 bytes {0} [built]
           [3] ./c.js 30 bytes {0} [built]
           [4] ./d.js 22 bytes {0} [built]
           [5] ./e.js 22 bytes {0} [built]
      Child 2 chunks:
    -     Hash: c4c4e0337021c38dadbf
    +     Hash: 697e3da34702e6283083
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                Asset       Size  Chunks             Chunk Names
          0.bundle.js  401 bytes       0  [emitted]  
    -       bundle.js   8.46 KiB       1  [emitted]  main
    +       bundle.js   8.45 KiB       1  [emitted]  main
          Entrypoint main = bundle.js
          chunk    {0} 0.bundle.js 88 bytes <{1}> [rendered]
           [2] ./a.js 22 bytes {0} [built]
           [3] ./b.js 22 bytes {0} [built]
           [4] ./d.js 22 bytes {0} [built]
           [5] ./e.js 22 bytes {0} [built]
          chunk    {1} bundle.js (main) 131 bytes <{1}> >{0}< >{1}< [entry] [rendered]
           [0] ./index.js 101 bytes {1} [built]
           [1] ./c.js 30 bytes {1} [built]
      Child 3 chunks:
    -     Hash: e19eb8024444df3ec45e
    +     Hash: cafc05c7e4657f0c8cd2
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                Asset       Size  Chunks             Chunk Names
          1.bundle.js  245 bytes       1  [emitted]  
          2.bundle.js  232 bytes       2  [emitted]  
    -       bundle.js   8.46 KiB       0  [emitted]  main
    +       bundle.js   8.45 KiB       0  [emitted]  main
          Entrypoint main = bundle.js
          chunk    {0} bundle.js (main) 131 bytes <{0}> >{0}< >{1}< >{2}< [entry] [rendered]
           [0] ./index.js 101 bytes {0} [built]
           [1] ./c.js 30 bytes {0} [built]
          chunk    {1} 1.bundle.js 44 bytes <{0}> [rendered]
    @@ -46,18 +46,18 @@
           [3] ./b.js 22 bytes {1} [built]
          chunk    {2} 2.bundle.js 44 bytes <{0}> [rendered]
           [4] ./d.js 22 bytes {2} [built]
           [5] ./e.js 22 bytes {2} [built]
      Child 4 chunks:
    -     Hash: 8ce9ff5edae99037259a
    +     Hash: b1d9585ea44692b97de7
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                Asset       Size  Chunks             Chunk Names
          1.bundle.js  245 bytes       1  [emitted]  
          2.bundle.js  152 bytes       2  [emitted]  
          3.bundle.js  152 bytes       3  [emitted]  
    -       bundle.js   8.46 KiB       0  [emitted]  main
    +       bundle.js   8.45 KiB       0  [emitted]  main
          Entrypoint main = bundle.js
          chunk    {0} bundle.js (main) 131 bytes <{0}> >{0}< >{1}< >{2}< >{3}< [entry] [rendered]
           [0] ./index.js 101 bytes {0} [built]
           [1] ./c.js 30 bytes {0} [built]
          chunk    {1} 1.bundle.js 44 bytes <{0}> [rendered]

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/MultiCompiler.js:247:12)
      at runWithDependencies.err (lib/MultiCompiler.js:270:6)
      at done (node_modules/neo-async/async.js:2928:13)
      at runCompilers (lib/MultiCompiler.js:174:48)
      at err (lib/MultiCompiler.js:181:7)
      at compiler.run (lib/MultiCompiler.js:263:7)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for module-assets

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for module-assets 1".

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: 3800082315c6d35bb423
    + "Hash: 39ade11f7dfa647a1990
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
      Entrypoint main = main.js
      chunk    {0} main.js (main) 12 bytes >{1}< [entry] [rendered]
       [0] ./index.js 12 bytes {0} [built]

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at asyncLib.forEachLimit.err (lib/Compiler.js:432:27)
      at node_modules/neo-async/async.js:2813:7
      at done (node_modules/neo-async/async.js:3521:9)
      at node_modules/graceful-fs/graceful-fs.js:43:10
      at node_modules/graceful-fs/graceful-fs.js:43:10

  ● StatsTestCases › should print correct stats for module-deduplication

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for module-deduplication 1".

    - Snapshot
    + Received

    @@ -3,13 +3,13 @@
       1.js  730 bytes    1, 7  [emitted]  
       2.js  730 bytes    2, 8  [emitted]  
       6.js  661 bytes       6  [emitted]  
       7.js  661 bytes       7  [emitted]  
       8.js  661 bytes       8  [emitted]  
    - e1.js   9.37 KiB       3  [emitted]  e1
    - e2.js   9.39 KiB       4  [emitted]  e2
    - e3.js   9.41 KiB       5  [emitted]  e3
    + e1.js   9.35 KiB       3  [emitted]  e1
    + e2.js   9.37 KiB       4  [emitted]  e2
    + e3.js   9.39 KiB       5  [emitted]  e3
      Entrypoint e1 = e1.js
      Entrypoint e2 = e2.js
      Entrypoint e3 = e3.js
      chunk    {0} 0.js 37 bytes <{4}> <{5}> [rendered]
       [2] ./async1.js 28 bytes {0} {6} [built]

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at asyncLib.forEachLimit.err (lib/Compiler.js:432:27)
      at node_modules/neo-async/async.js:2813:7
      at done (node_modules/neo-async/async.js:3521:9)
      at node_modules/graceful-fs/graceful-fs.js:43:10
      at node_modules/graceful-fs/graceful-fs.js:43:10

  ● StatsTestCases › should print correct stats for module-deduplication-named

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for module-deduplication-named 1".

    - Snapshot
    + Received

    @@ -1,12 +1,12 @@
      "    Asset       Size  Chunks             Chunk Names
      async1.js  820 bytes       0  [emitted]  async1
      async2.js  820 bytes       1  [emitted]  async2
      async3.js  820 bytes       2  [emitted]  async3
    -     e1.js   9.23 KiB       3  [emitted]  e1
    -     e2.js   9.25 KiB       4  [emitted]  e2
    -     e3.js   9.27 KiB       5  [emitted]  e3
    +     e1.js   9.21 KiB       3  [emitted]  e1
    +     e2.js   9.23 KiB       4  [emitted]  e2
    +     e3.js   9.25 KiB       5  [emitted]  e3
      Entrypoint e1 = e1.js
      Entrypoint e2 = e2.js
      Entrypoint e3 = e3.js
      chunk    {0} async1.js (async1) 89 bytes <{2}> <{3}> >{1}< [rendered]
        [2] ./d.js 9 bytes {0} {3} [built]

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at asyncLib.forEachLimit.err (lib/Compiler.js:432:27)
      at node_modules/neo-async/async.js:2813:7
      at done (node_modules/neo-async/async.js:3521:9)
      at node_modules/graceful-fs/graceful-fs.js:43:10
      at node_modules/graceful-fs/graceful-fs.js:43:10

  ● StatsTestCases › should print correct stats for named-chunks-plugin-async

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for named-chunks-plugin-async 1".

    - Snapshot
    + Received

    - "Hash: c90d9bc140f3e8bbd29c
    + "Hash: 57aacd185c9c3c321b44
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
                           Asset       Size                   Chunks             Chunk Names
      chunk-containing-__a_js.js  307 bytes  chunk-containing-__a_js  [emitted]  
      chunk-containing-__b_js.js  182 bytes  chunk-containing-__b_js  [emitted]  
    -                   entry.js   8.13 KiB                    entry  [emitted]  entry
    +                   entry.js   8.11 KiB                    entry  [emitted]  entry
      Entrypoint entry = entry.js
      [0] ./entry.js 47 bytes {entry} [built]
      [1] ./modules/b.js 22 bytes {chunk-containing-__b_js} [built]
      [2] ./modules/a.js 37 bytes {chunk-containing-__a_js} [built]"

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at asyncLib.forEachLimit.err (lib/Compiler.js:432:27)
      at node_modules/neo-async/async.js:2813:7
      at done (node_modules/neo-async/async.js:3521:9)
      at node_modules/graceful-fs/graceful-fs.js:43:10
      at node_modules/graceful-fs/graceful-fs.js:43:10

  ● StatsTestCases › should print correct stats for optimize-chunks

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for optimize-chunks 1".

    - Snapshot
    + Received

    @@ -1,17 +1,17 @@
    - "Hash: aa85d85eda19bac37a2e
    + "Hash: 1adb3d3c0e22d24cff34
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
                  Asset       Size  Chunks             Chunk Names
                  ab.js  183 bytes       1  [emitted]  ab
                 abd.js  250 bytes    2, 1  [emitted]  abd
            ac in ab.js  130 bytes       3  [emitted]  ac in ab
               chunk.js  212 bytes    4, 3  [emitted]  chunk
                cir1.js  299 bytes       0  [emitted]  cir1
      cir2 from cir1.js  359 bytes    6, 5  [emitted]  cir2 from cir1
                cir2.js  299 bytes       5  [emitted]  cir2
    -           main.js   9.03 KiB       7  [emitted]  main
    +           main.js   9.02 KiB       7  [emitted]  main
      Entrypoint main = main.js
      chunk    {0} cir1.js (cir1) 81 bytes <{5}> <{7}> >{6}< [rendered]
          > [5] ./index.js 13:0-54
          > [7] ./circular2.js 1:0-79
          > [7] ./circular2.js 1:0-79

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at asyncLib.forEachLimit.err (lib/Compiler.js:432:27)
      at node_modules/neo-async/async.js:2813:7
      at done (node_modules/neo-async/async.js:3521:9)
      at node_modules/graceful-fs/graceful-fs.js:43:10
      at node_modules/graceful-fs/graceful-fs.js:43:10

  ● StatsTestCases › should print correct stats for prefetch

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for prefetch 1".

    - Snapshot
    + Received

    @@ -1,9 +1,9 @@
      "         Asset       Size  Chunks             Chunk Names
            inner.js  130 bytes       0  [emitted]  inner
           inner2.js  188 bytes       1  [emitted]  inner2
    -        main.js   9.55 KiB       2  [emitted]  main
    +        main.js   9.54 KiB       2  [emitted]  main
           normal.js  130 bytes       3  [emitted]  normal
       prefetched.js  475 bytes       4  [emitted]  prefetched
      prefetched2.js  127 bytes       5  [emitted]  prefetched2
      prefetched3.js  130 bytes       6  [emitted]  prefetched3
      Entrypoint main = main.js (prefetch: prefetched2.js prefetched.js prefetched3.js)

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at asyncLib.forEachLimit.err (lib/Compiler.js:432:27)
      at node_modules/neo-async/async.js:2813:7
      at done (node_modules/neo-async/async.js:3521:9)
      at node_modules/graceful-fs/graceful-fs.js:43:10
      at node_modules/graceful-fs/graceful-fs.js:43:10

  ● StatsTestCases › should print correct stats for preload

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for preload 1".

    - Snapshot
    + Received

    @@ -1,9 +1,9 @@
      "        Asset       Size  Chunks             Chunk Names
           inner.js  130 bytes       0  [emitted]  inner
          inner2.js  188 bytes       1  [emitted]  inner2
    -       main.js   9.75 KiB       2  [emitted]  main
    +       main.js   9.74 KiB       2  [emitted]  main
          normal.js  130 bytes       3  [emitted]  normal
       preloaded.js  467 bytes       4  [emitted]  preloaded
      preloaded2.js  127 bytes       5  [emitted]  preloaded2
      preloaded3.js  130 bytes       6  [emitted]  preloaded3
      Entrypoint main = main.js (preload: preloaded2.js preloaded.js preloaded3.js)

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at asyncLib.forEachLimit.err (lib/Compiler.js:432:27)
      at node_modules/neo-async/async.js:2813:7
      at done (node_modules/neo-async/async.js:3521:9)
      at node_modules/graceful-fs/graceful-fs.js:43:10
      at node_modules/graceful-fs/graceful-fs.js:43:10

  ● StatsTestCases › should print correct stats for preset-detailed

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for preset-detailed 1".

    - Snapshot
    + Received

    @@ -1,13 +1,13 @@
    - "Hash: 934b93428d78d30a6bf2
    + "Hash: 4a43a6675de2bbac0616
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
        Asset       Size  Chunks             Chunk Names
         1.js  232 bytes       1  [emitted]  
         2.js  152 bytes       2  [emitted]  
         3.js  289 bytes       3  [emitted]  
    - main.js   8.23 KiB       0  [emitted]  main
    + main.js   8.22 KiB       0  [emitted]  main
      Entrypoint main = main.js
      chunk    {0} main.js (main) 73 bytes >{2}< >{3}< [entry] [rendered]
          > ./index main
      chunk    {1} 1.js 44 bytes <{3}> [rendered]
          > [3] ./c.js 1:0-52

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at asyncLib.forEachLimit.err (lib/Compiler.js:432:27)
      at node_modules/neo-async/async.js:2813:7
      at done (node_modules/neo-async/async.js:3521:9)
      at node_modules/graceful-fs/graceful-fs.js:43:10
      at node_modules/graceful-fs/graceful-fs.js:43:10

  ● StatsTestCases › should print correct stats for preset-normal

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for preset-normal 1".

    - Snapshot
    + Received

    @@ -1,13 +1,13 @@
    - "Hash: 934b93428d78d30a6bf2
    + "Hash: 4a43a6675de2bbac0616
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
        Asset       Size  Chunks             Chunk Names
         1.js  232 bytes       1  [emitted]  
         2.js  152 bytes       2  [emitted]  
         3.js  289 bytes       3  [emitted]  
    - main.js   8.23 KiB       0  [emitted]  main
    + main.js   8.22 KiB       0  [emitted]  main
      Entrypoint main = main.js
      [0] ./index.js 51 bytes {0} [built]
      [1] ./a.js 22 bytes {0} [built]
      [2] ./b.js 22 bytes {2} [built]
      [3] ./c.js 54 bytes {3} [built]

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at asyncLib.forEachLimit.err (lib/Compiler.js:432:27)
      at node_modules/neo-async/async.js:2813:7
      at done (node_modules/neo-async/async.js:3521:9)
      at node_modules/graceful-fs/graceful-fs.js:43:10
      at node_modules/graceful-fs/graceful-fs.js:43:10

  ● StatsTestCases › should print correct stats for preset-verbose

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for preset-verbose 1".

    - Snapshot
    + Received

    @@ -1,13 +1,13 @@
    - "Hash: 934b93428d78d30a6bf2
    + "Hash: 4a43a6675de2bbac0616
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
        Asset       Size  Chunks             Chunk Names
         1.js  232 bytes       1  [emitted]  
         2.js  152 bytes       2  [emitted]  
         3.js  289 bytes       3  [emitted]  
    - main.js   8.23 KiB       0  [emitted]  main
    + main.js   8.22 KiB       0  [emitted]  main
      Entrypoint main = main.js
      chunk    {0} main.js (main) 73 bytes >{2}< >{3}< [entry] [rendered]
          > ./index main
       [0] ./index.js 51 bytes {0} [depth 0] [built]
           ModuleConcatenation bailout: Module is not an ECMAScript module

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at asyncLib.forEachLimit.err (lib/Compiler.js:432:27)
      at node_modules/neo-async/async.js:2813:7
      at done (node_modules/neo-async/async.js:3521:9)
      at node_modules/graceful-fs/graceful-fs.js:43:10
      at node_modules/graceful-fs/graceful-fs.js:43:10

  ● StatsTestCases › should print correct stats for runtime-chunk-integration

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for runtime-chunk-integration 1".

    - Snapshot
    + Received

    @@ -1,20 +1,20 @@
      "Child base:
               Asset       Size  Chunks             Chunk Names
                0.js  728 bytes       0  [emitted]  
            main1.js  539 bytes       1  [emitted]  main1
    -     runtime.js    8.7 KiB       2  [emitted]  runtime
    +     runtime.js   8.68 KiB       2  [emitted]  runtime
          Entrypoint main1 = runtime.js main1.js
          [0] ./main1.js 66 bytes {1} [built]
          [1] ./b.js 20 bytes {0} [built]
          [2] ./c.js 20 bytes {0} [built]
          [3] ./d.js 20 bytes {0} [built]
      Child manifest is named entry:
                Asset       Size  Chunks             Chunk Names
                 0.js  737 bytes       0  [emitted]  
             main1.js  539 bytes       2  [emitted]  main1
    -     manifest.js   9.01 KiB       1  [emitted]  manifest
    +     manifest.js   8.99 KiB       1  [emitted]  manifest
          Entrypoint main1 = manifest.js main1.js
          Entrypoint manifest = manifest.js
          [0] ./main1.js 66 bytes {2} [built]
          [1] ./f.js 20 bytes {1} [built]
          [2] ./b.js 20 bytes {0} [built]

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/MultiCompiler.js:247:12)
      at runWithDependencies.err (lib/MultiCompiler.js:270:6)
      at done (node_modules/neo-async/async.js:2928:13)
      at runCompilers (lib/MultiCompiler.js:174:48)
      at err (lib/MultiCompiler.js:181:7)
      at compiler.run (lib/MultiCompiler.js:263:7)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for scope-hoisting-bailouts

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for scope-hoisting-bailouts 1".

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: 21b74df86e904b9e34c1
    + "Hash: 8dc588d97c2c4c8def96
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
      Entrypoint index = index.js
      Entrypoint entry = entry.js
      [0] ./entry.js 32 bytes {0} {1} [built]

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at asyncLib.forEachLimit.err (lib/Compiler.js:432:27)
      at node_modules/neo-async/async.js:2813:7
      at done (node_modules/neo-async/async.js:3521:9)
      at node_modules/graceful-fs/graceful-fs.js:43:10
      at node_modules/graceful-fs/graceful-fs.js:43:10

  ● StatsTestCases › should print correct stats for scope-hoisting-multi

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for scope-hoisting-multi 1".

    - Snapshot
    + Received

    @@ -1,8 +1,8 @@
    - "Hash: e9ee59c952da1a23368e3ae60c31c1c21dd62d86
    + "Hash: bfa4e14ad1bb889c12cf3895fe6de6272c187c7e
      Child
    -     Hash: e9ee59c952da1a23368e
    +     Hash: bfa4e14ad1bb889c12cf
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
          Entrypoint first = vendor.js first.js
          Entrypoint second = vendor.js second.js
           [0] ./common2.js 25 bytes {1} {5} [built]
    @@ -15,11 +15,11 @@
           [7] ./lazy_first.js 55 bytes {2} [built]
           [8] ./lazy_second.js 55 bytes {3} [built]
           [9] ./common_lazy_shared.js 25 bytes {2} {3} {4} [built]
          [10] ./common_lazy.js 25 bytes {2} {3} [built]
      Child
    -     Hash: 3ae60c31c1c21dd62d86
    +     Hash: 3895fe6de6272c187c7e
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
          Entrypoint first = vendor.js first.js
          Entrypoint second = vendor.js second.js
          [0] ./common.js + 1 modules 62 bytes {1} {5} [built]

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/MultiCompiler.js:247:12)
      at runWithDependencies.err (lib/MultiCompiler.js:270:6)
      at done (node_modules/neo-async/async.js:2928:13)
      at runCompilers (lib/MultiCompiler.js:174:48)
      at err (lib/MultiCompiler.js:181:7)
      at compiler.run (lib/MultiCompiler.js:263:7)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for side-effects-issue-7428

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for side-effects-issue-7428 1".

    - Snapshot
    + Received

    @@ -1,11 +1,11 @@
    - "Hash: 1db323720a3bbea98b3b
    + "Hash: 14110d353cb3fc863b79
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
        Asset       Size  Chunks             Chunk Names
         1.js  481 bytes       1  [emitted]  
    - main.js   9.29 KiB       0  [emitted]  main
    + main.js   9.28 KiB       0  [emitted]  main
      Entrypoint main = main.js
      [0] ./components/src/CompAB/index.js 87 bytes [built]
          [no exports used]
          harmony side effect evaluation ./CompAB [3] ./components/src/index.js 1:0-40
          harmony export imported specifier ./CompAB [3] ./components/src/index.js 1:0-40

      127 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      128 | 					.replace(/ dependencies:Xms/g, "");
    > 129 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      130 | 				done();
      131 | 			});
      132 | 		});

      at c.run (test/StatsTestCases.test.js:129:20)
      at finalCallback (lib/Compiler.js:220:39)
      at hooks.done.callAsync.err (lib/Compiler.js:269:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at emitRecords.err (lib/Compiler.js:267:22)
      at Compiler.emitRecords (lib/Compiler.js:449:39)
      at emitAssets.err (lib/Compiler.js:261:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:435:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (node_modules/tapable/lib/Hook.js:154:20)
      at asyncLib.forEachLimit.err (lib/Compiler.js:432:27)
      at node_modules/neo-async/async.js:2813:7
      at done (node_modules/neo-async/async.js:3521:9)
      at node_modules/graceful-fs/graceful-fs.js:43:10
      at node_modules/graceful-fs/graceful-fs.js:43:10

 › 22 snapshots failed.
Snapshot Summary
 › 22 snapshots failed from 1 test suite. Inspect your code changes or run `
Test Suites: 3 failed, 3 total
Tests:       26 failed, 8 skipped, 1803 passed, 1837 total
Snapshots:   22 failed, 65 passed, 87 total
Time:        26.232s

See complete report here.

webpack-bot avatar Feb 26 '19 23:02 webpack-bot

@TheLarkInn I realize that this PR is not in shape to move forward, however I was hoping you could give me some feedback on the premise of this PR, and some guidance on the best way to move forward.

sandersonatlatitude avatar Mar 01 '19 16:03 sandersonatlatitude