New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] feat(html): add HTML module support (`html`) #6447

Open
wants to merge 1 commit into
base: next
from

Conversation

Projects
None yet
7 participants
@michael-ciniawsky
Copy link
Member

michael-ciniawsky commented Feb 6, 2018

This PR attempts to add support for a new module type (module.type === 'html') to support HTML 'natively', replacing the need for loaders/plugins like the html-loader/html-webpack-plugin and adding support for using HTML as an Entrypoint and to declare Entrypoints (JS, CSS, HTML) from within the HTML Template

entry.html

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>HTML Modules</title>
    <!-- Entrypoint Support (CSS) -->
    <link href="./entry.css" rel="stylesheet" entry>
  </head>
  <body>
    <div>
      <!-- HTML Module Support -->
      <import src="./import.html"></import>

      <!-- Asset Module Support -->
      <img src="./assets/file.png">

      <!-- Entrypoint Support (HTML) -->
      <a href="./entry.html" entry></a>

      <!-- Entrypoint Support (JS) -->
      <script src="./entry.js" entry></script>
    </div>
  </body>
</html>

webpack.config.js

const config = {
  entry: {
    index: 'path/to/entry.html'
  },
  module: {
    rules: [
       {
           test: /\.html$/,
           type: 'html'
       },
       ...
    ]
  }
}

ℹ️ This PR includes defaults for common module.rules, so normally it won't be necessary to specify module.rules for common cases (.html) like in the example above, it's sole purpose is to illustrate the concept, adding custom rules for e.g other templating languages (.pug etc) is of course supported aswell


TODO

Fix

  • Render HTML correctly
    • HTMLTemplate
    • HTMLGenerator (Dependencies)
  • Replace entrypoint placeholders with output URLs (Assets URLs)
    • needs to rerender on every change, alonside the changes files

Feature

  • Figure out how to treat/handle a HTML ChunkGroup/Chunk (Entrypoint)
  • output (webpack.config.js) Support (e.g [name].[ext])
    • no [hash] placeholder support (doesn't make sense)
    • the 'main' entry should ideally (always) be named index (index.html)
  • preload Support
  • prefetch Support
    • <a rel="next" href="./entry.html" entry> (maybe)

Chore

  • Add Type Definitions

Test

  • Add tests

@@ -56,6 +56,10 @@ class WebpackOptionsDefaulter extends OptionsDefaulter {
{
test: /\.wasm$/i,
type: "webassembly/experimental"
},
{
test: /\.html$/,

This comment was marked as resolved.

@kingdaro

kingdaro Feb 7, 2018

Contributor

The other RegExps have the i flag but this one doesn't. Oversight?

This comment was marked as resolved.

@michael-ciniawsky

@sokra sokra removed the PR: next label Feb 13, 2018

@sokra sokra closed this Feb 20, 2018

@sokra sokra changed the base branch from next to master Feb 20, 2018

@sokra sokra reopened this Feb 20, 2018

@michael-ciniawsky michael-ciniawsky force-pushed the feature/html branch from c18f518 to 1be08a3 Mar 3, 2018

@michael-ciniawsky michael-ciniawsky force-pushed the feature/html branch from d41d8d7 to 13c62db Mar 3, 2018

@michael-ciniawsky michael-ciniawsky force-pushed the feature/html branch 2 times, most recently from 4135c73 to fca4b54 Mar 3, 2018

});

it('Should import() HTML', function() {
import('./index.html').then((html) => {

This comment has been minimized.

@Janpot

Janpot Mar 3, 2018

Member

I think you need to return this promise from the test.

@michael-ciniawsky michael-ciniawsky force-pushed the feature/html branch 3 times, most recently from 2ff4177 to bb446b1 Mar 4, 2018

@@ -202,4 +202,43 @@ module.exports = class Template {
}
return source;
}

static renderHTMLChunk(chunk, filterFn, moduleTemplate, dependencyTemplates) {

This comment has been minimized.

@glen-84

glen-84 Mar 30, 2018

Shouldn't this be renderHtmlChunk? (etc.)

It's stats.toJson(), JsonGenerator, JsonParser, etc., so acronyms are written in sentence case.

@glen-84

This comment was marked as resolved.

Copy link

glen-84 commented Mar 30, 2018

Will this PR resolve #536?

I'm new to webpack, but I'd like to be able to point it to a list of HTML files, and have each script/image/stylesheet in those files processed "automatically".

For example, given:

entry: "page1.html"
<!DOCTYPE html>
<html>
<head>
    <title>Example</title>
    <script src="main.ts"></script>
</head>
<body>
    <img src="image.png" />
</body>
</html>

I'd like main.ts to be processed as an entry file, and for its output path to be written into the resulting HTML (by default), like:

...
<script src="/dest/main.js"></script>
...

The image would also be processed in a similar way (as well as any link/stylesheet elements, etc.).

(In my specific case, I'd probably have to block the output of the HTML itself, because I'm working with server-side HTML templates, but I assume that I could do something like this with a plugin?)

I've just started work on implementing webpack, so I'd like to know if this type of thing will be supported "soon", or if I should just use the current method of importing CSS inside JS, etc. (which I find a bit strange).

@webpack-bot

This comment has been minimized.

Copy link

webpack-bot commented May 16, 2018

For maintainers only:

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

@sokra sokra modified the milestones: webpack 4.x, webpack 5 Jun 21, 2018

@glen-84 glen-84 referenced this pull request Aug 26, 2018

Closed

[path] placeholder #92

@michael-ciniawsky michael-ciniawsky force-pushed the feature/html branch from bb446b1 to 55460e5 Sep 23, 2018

@michael-ciniawsky michael-ciniawsky changed the base branch from master to next Sep 23, 2018

@@ -113,6 +117,8 @@ class WebpackOptionsDefaulter extends OptionsDefaulter {
}
return "[id].js";
});
// HTML
this.set("output.htmlModuleFilename", "[modulehash].module.html");

This comment was marked as resolved.

@michael-ciniawsky
@@ -317,7 +323,7 @@ class WebpackOptionsDefaulter extends OptionsDefaulter {
this.set("resolve", "call", value => Object.assign({}, value));
this.set("resolve.unsafeCache", true);
this.set("resolve.modules", ["node_modules"]);
this.set("resolve.extensions", [".wasm", ".mjs", ".js", ".json"]);
this.set("resolve.extensions", [".html", ".wasm", ".mjs", ".js", ".json"]);

This comment was marked as resolved.

@michael-ciniawsky

@michael-ciniawsky michael-ciniawsky changed the title [WIP] feat(html): add HTML module support (`html/experimental`) [WIP] feat(html): add HTML module support (`html`) Sep 23, 2018

@webpack webpack deleted a comment from webpack-bot Sep 23, 2018

@michael-ciniawsky michael-ciniawsky force-pushed the feature/html branch from 55460e5 to da2f338 Sep 23, 2018

@michael-ciniawsky michael-ciniawsky force-pushed the feature/html branch from da2f338 to 034e590 Sep 23, 2018

@webpack-bot

This comment has been minimized.

Copy link

webpack-bot commented Sep 23, 2018

The basic integration tests failed.

@michael-ciniawsky Please review the following output log for errors:

    at Set.set.(anonymous function) [as reduce] (/home/travis/build/webpack/webpack/lib/util/deprecation.js:72:4)
    at TerserPlugin.optimizeFn (/home/travis/build/webpack/webpack/node_modules/terser-webpack-plugin/dist/index.js:164:14)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/travis/build/webpack/webpack/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:7:1)
    at AsyncSeriesHook.lazyCompileHook (/home/travis/build/webpack/webpack/node_modules/tapable/lib/Hook.js:154:20)
    at hooks.additionalAssets.callAsync.err (/home/travis/build/webpack/webpack/lib/Compilation.js:1085:36)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/travis/build/webpack/webpack/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (/home/travis/build/webpack/webpack/node_modules/tapable/lib/Hook.js:154:20)
    at hooks.optimizeTree.callAsync.err (/home/travis/build/webpack/webpack/lib/Compilation.js:1081:32)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/travis/build/webpack/webpack/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (/home/travis/build/webpack/webpack/node_modules/tapable/lib/Hook.js:154:20)
    at Set.set.(anonymous function) [as reduce] (/home/travis/build/webpack/webpack/lib/util/deprecation.js:72:4)
    at TerserPlugin.optimizeFn (/home/travis/build/webpack/webpack/node_modules/terser-webpack-plugin/dist/index.js:164:14)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/travis/build/webpack/webpack/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:7:1)
    at AsyncSeriesHook.lazyCompileHook (/home/travis/build/webpack/webpack/node_modules/tapable/lib/Hook.js:154:20)
    at hooks.additionalAssets.callAsync.err (/home/travis/build/webpack/webpack/lib/Compilation.js:1085:36)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/travis/build/webpack/webpack/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (/home/travis/build/webpack/webpack/node_modules/tapable/lib/Hook.js:154:20)
    at hooks.optimizeTree.callAsync.err (/home/travis/build/webpack/webpack/lib/Compilation.js:1081:32)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/travis/build/webpack/webpack/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (/home/travis/build/webpack/webpack/node_modules/tapable/lib/Hook.js:154:20)
FAIL test/StatsTestCases.test.js (8.299s)
  ● 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,8 +1,8 @@
    - "Hash: b0db5245ce4f808b7ce8b0db5245ce4f808b7ce8
    + "Hash: 9ffe47c565ba94a9c77c9ffe47c565ba94a9c77c
      Child fitting:
    -     Hash: b0db5245ce4f808b7ce8
    +     Hash: 9ffe47c565ba94a9c77c
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                            Asset      Size  Chunks             Chunk Names
          5d5aae6ca1af5d6e6ea4.js  1.94 KiB       3  [emitted]  
          7029d2a129d88406bdea.js  1.94 KiB       1  [emitted]  
    @@ -24,11 +24,11 @@
          chunk    {3} 5d5aae6ca1af5d6e6ea4.js 1.76 KiB ={1}= ={2}= >{0}< [initial] [rendered] [recorded] aggressive splitted
              > ./index main
           [0] ./b.js 899 bytes {3} [built]
           [5] ./a.js 899 bytes {3} [built]
      Child content-change:
    -     Hash: b0db5245ce4f808b7ce8
    +     Hash: 9ffe47c565ba94a9c77c
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                            Asset      Size  Chunks             Chunk Names
          5d5aae6ca1af5d6e6ea4.js  1.94 KiB       3  [emitted]  
          7029d2a129d88406bdea.js  1.94 KiB       1  [emitted]  

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/MultiCompiler.js:247:12)
      at runWithDependencies.err (lib/MultiCompiler.js:270:6)
      at done (node_modules/neo-async/async.js:2920: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:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202:14)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
Show remaining errors
  ● 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,6 +1,6 @@
    - "Hash: cb1b9897db67194e18d2
    + "Hash: 72d273fca634016cc23b
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
                        Asset      Size  Chunks             Chunk Names
      01a8254701931adbf278.js  1.01 KiB       9  [emitted]  
      01a8f6900f403d5703b2.js  1.94 KiB    3, 4  [emitted]  

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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 chunk-module-id-range

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: f9bc99296a5830cfa2dc
    + "Hash: 207462c689f8b46e8143
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
         Asset      Size  Chunks             Chunk Names
      main1.js  4.86 KiB       1  [emitted]  main1
      main2.js  4.85 KiB       0  [emitted]  main2

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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 chunks

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: 7e9169c0d292752d420d
    + "Hash: d3cb643c1fa8f196629f
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
            Asset       Size  Chunks             Chunk Names
      1.bundle.js  152 bytes       1  [emitted]  
      2.bundle.js  289 bytes       2  [emitted]  

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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,6 +1,6 @@
    - "Hash: 45b6636dfd64ed682f3c
    + "Hash: 17205246417b83e802f6
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
            Asset       Size  Chunks             Chunk Names
      0.bundle.js  588 bytes       0  [emitted]  
      b.bundle.js  299 bytes       b  [emitted]  

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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 color-disabled

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: ce708fa2ffe5495ae4aa
    + "Hash: 1769d86b46a5ebb8283f
      Time: Xms
      Built at: Thu Jan 01 1970 <CLR=BOLD>00:00:00</CLR> GMT
        Asset      Size  Chunks             Chunk Names
      main.js  3.57 KiB       0  [emitted]  main
      Entrypoint main = main.js

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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 color-enabled

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: <CLR=BOLD>ce708fa2ffe5495ae4aa</CLR>
    + "Hash: <CLR=BOLD>1769d86b46a5ebb8283f</CLR>
      Time: <CLR=BOLD>X</CLR>ms
      Built at: Thu Jan 01 1970 <CLR=BOLD>00:00:00</CLR> GMT
        <CLR=BOLD>Asset</CLR>      <CLR=BOLD>Size</CLR>  <CLR=BOLD>Chunks</CLR>  <CLR=39,BOLD><CLR=22>           <CLR=39,BOLD><CLR=22><CLR=BOLD>Chunk Names</CLR>
      <CLR=32,BOLD>main.js</CLR>  3.57 KiB       <CLR=BOLD>0</CLR>  <CLR=32,BOLD>[emitted]</CLR>  main
      Entrypoint <CLR=BOLD>main</CLR> = <CLR=32,BOLD>main.js</CLR>

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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 color-enabled-custom

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for color-enabled-custom 1".

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: <CLR=BOLD>ce708fa2ffe5495ae4aa</CLR>
    + "Hash: <CLR=BOLD>1769d86b46a5ebb8283f</CLR>
      Time: <CLR=BOLD>X</CLR>ms
      Built at: Thu Jan 01 1970 <CLR=BOLD>00:00:00</CLR> GMT
        <CLR=BOLD>Asset</CLR>      <CLR=BOLD>Size</CLR>  <CLR=BOLD>Chunks</CLR>  <CLR=39,BOLD><CLR=22>           <CLR=39,BOLD><CLR=22><CLR=BOLD>Chunk Names</CLR>
      <CLR=32>main.js</CLR>  3.57 KiB       <CLR=BOLD>0</CLR>  <CLR=32>[emitted]</CLR>  main
      Entrypoint <CLR=BOLD>main</CLR> = <CLR=32>main.js</CLR>

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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 commons-chunk-min-size-0

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for commons-chunk-min-size-0 1".

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: 59f2dff45dde52261e7b
    + "Hash: ac33866d3fefcaf0c0a7
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
                    Asset       Size  Chunks             Chunk Names
               entry-1.js    6.6 KiB       0  [emitted]  entry-1
      vendor-1~entry-1.js  314 bytes       1  [emitted]  vendor-1~entry-1

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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 commons-chunk-min-size-Infinity

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for commons-chunk-min-size-Infinity 1".

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: 26df0a89882e1be92d41
    + "Hash: 4a21627800ec753797ae
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
            Asset       Size  Chunks             Chunk Names
       entry-1.js    6.6 KiB       0  [emitted]  entry-1
      vendor-1.js  314 bytes       1  [emitted]  vendor-1

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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 commons-plugin-issue-4980

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,8 +1,8 @@
    - "Hash: 6c4a9fc97a9493ea89e0596f1dadc3e618bde6c6
    + "Hash: 4f70fe97a3d95b70e75528e82d4d1b56fa3dfa33
      Child
    -     Hash: 6c4a9fc97a9493ea89e0
    +     Hash: 4f70fe97a3d95b70e755
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset       Size  Chunks             Chunk Names
             app.js   6.69 KiB       1  [emitted]  app
          vendor.js  619 bytes       0  [emitted]  vendor
    @@ -11,11 +11,11 @@
          [./entry-1.js] ./entry-1.js + 2 modules 190 bytes {1} [built]
              | ./submodule-a.js 59 bytes [built]
              | ./submodule-b.js 59 bytes [built]
              | ./entry-1.js 67 bytes [built]
      Child
    -     Hash: 596f1dadc3e618bde6c6
    +     Hash: 28e82d4d1b56fa3dfa33
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset       Size  Chunks             Chunk Names
             app.js    6.7 KiB       1  [emitted]  app
          vendor.js  619 bytes       0  [emitted]  vendor

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/MultiCompiler.js:247:12)
      at runWithDependencies.err (lib/MultiCompiler.js:270:6)
      at done (node_modules/neo-async/async.js:2920: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:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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 define-plugin

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,24 +1,24 @@
    - "Hash: fd778314cb15a143f15b0345e3914a9783f4818519b3d74f68a26d73f53e
    + "Hash: 93dc98a7dc78d49ceb970c2a7c375d7535def4d6eb819153b4b214970dbf
      Child
    -     Hash: fd778314cb15a143f15b
    +     Hash: 93dc98a7dc78d49ceb97
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
            Asset     Size  Chunks             Chunk Names
          main.js  3.6 KiB       0  [emitted]  main
          Entrypoint main = main.js
          [0] ./index.js 24 bytes {0} [built]
      Child
    -     Hash: 0345e3914a9783f48185
    +     Hash: 0c2a7c375d7535def4d6
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
            Asset     Size  Chunks             Chunk Names
          main.js  3.6 KiB       0  [emitted]  main
          Entrypoint main = main.js
          [0] ./index.js 24 bytes {0} [built]
      Child
    -     Hash: 19b3d74f68a26d73f53e
    +     Hash: eb819153b4b214970dbf
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
            Asset     Size  Chunks             Chunk Names
          main.js  3.6 KiB       0  [emitted]  main
          Entrypoint main = main.js

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/MultiCompiler.js:247:12)
      at runWithDependencies.err (lib/MultiCompiler.js:270:6)
      at done (node_modules/neo-async/async.js:2920: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:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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 dll-reference-plugin-issue-7624

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for dll-reference-plugin-issue-7624 1".

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: a7b80b9bc5b1f3e450db
    + "Hash: 291c05d755e385ac89f0
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
          Asset     Size  Chunks             Chunk Names
      bundle.js  3.6 KiB       0  [emitted]  main
      Entrypoint main = bundle.js

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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 dll-reference-plugin-issue-7624-error

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for dll-reference-plugin-issue-7624-error 1".

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: cec8c3c0d542c8fb2820
    + "Hash: fe366bcb3af7438fad85
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
          Asset     Size  Chunks  Chunk Names
      bundle.js  3.6 KiB       0  main
      Entrypoint main = bundle.js

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:169:13)
      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 onCompiled (lib/Compiler.js:167:21)
      at hooks.afterCompile.callAsync.err (lib/Compiler.js:496: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 compilation.seal.err (lib/Compiler.js:493:30)

  ● StatsTestCases › should print correct stats for exclude-with-loader

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for exclude-with-loader 1".

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: 678de6ada6423fea43da
    + "Hash: 578623d82bd60e191115
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
          Asset      Size  Chunks             Chunk Names
      bundle.js  4.01 KiB       0  [emitted]  main
       + 1 hidden asset

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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 external

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: 857fd27370e02ebe2ec7
    + "Hash: d8c532201ebf67af3216
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
        Asset      Size  Chunks             Chunk Names
      main.js  3.71 KiB       0  [emitted]  main
      Entrypoint main = main.js

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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 filter-warnings

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,8 +1,8 @@
    - "Hash: 70b5eb88941464457a7d70b5eb88941464457a7d70b5eb88941464457a7d70b5eb88941464457a7d70b5eb88941464457a7d70b5eb88941464457a7d70b5eb88941464457a7d70b5eb88941464457a7d70b5eb88941464457a7d70b5eb88941464457a7d70b5eb88941464457a7d70b5eb88941464457a7d70b5eb88941464457a7d
    + "Hash: 54f7e05266649c3e0cbf54f7e05266649c3e0cbf54f7e05266649c3e0cbf54f7e05266649c3e0cbf54f7e05266649c3e0cbf54f7e05266649c3e0cbf54f7e05266649c3e0cbf54f7e05266649c3e0cbf54f7e05266649c3e0cbf54f7e05266649c3e0cbf54f7e05266649c3e0cbf54f7e05266649c3e0cbf54f7e05266649c3e0cbf
      Child undefined:
    -     Hash: 70b5eb88941464457a7d
    +     Hash: 54f7e05266649c3e0cbf
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset      Size  Chunks             Chunk Names
          bundle.js  2.84 KiB       0  [emitted]  main
          Entrypoint main = bundle.js
    @@ -27,53 +27,53 @@
          
          WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction4 [./a.js:6,0]
          
          WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction5 [./a.js:7,0]
      Child Terser:
    -     Hash: 70b5eb88941464457a7d
    +     Hash: 54f7e05266649c3e0cbf
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset      Size  Chunks             Chunk Names
          bundle.js  2.84 KiB       0  [emitted]  main
          Entrypoint main = bundle.js
      Child /Terser/:
    -     Hash: 70b5eb88941464457a7d
    +     Hash: 54f7e05266649c3e0cbf
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset      Size  Chunks             Chunk Names
          bundle.js  2.84 KiB       0  [emitted]  main
          Entrypoint main = bundle.js
      Child warnings => true:
    -     Hash: 70b5eb88941464457a7d
    +     Hash: 54f7e05266649c3e0cbf
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset      Size  Chunks             Chunk Names
          bundle.js  2.84 KiB       0  [emitted]  main
          Entrypoint main = bundle.js
      Child [Terser]:
    -     Hash: 70b5eb88941464457a7d
    +     Hash: 54f7e05266649c3e0cbf
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset      Size  Chunks             Chunk Names
          bundle.js  2.84 KiB       0  [emitted]  main
          Entrypoint main = bundle.js
      Child [/Terser/]:
    -     Hash: 70b5eb88941464457a7d
    +     Hash: 54f7e05266649c3e0cbf
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset      Size  Chunks             Chunk Names
          bundle.js  2.84 KiB       0  [emitted]  main
          Entrypoint main = bundle.js
      Child [warnings => true]:
    -     Hash: 70b5eb88941464457a7d
    +     Hash: 54f7e05266649c3e0cbf
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset      Size  Chunks             Chunk Names
          bundle.js  2.84 KiB       0  [emitted]  main
          Entrypoint main = bundle.js
      Child should not filter:
    -     Hash: 70b5eb88941464457a7d
    +     Hash: 54f7e05266649c3e0cbf
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset      Size  Chunks             Chunk Names
          bundle.js  2.84 KiB       0  [emitted]  main
          Entrypoint main = bundle.js
    @@ -98,11 +98,11 @@
          
          WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction4 [./a.js:6,0]
          
          WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction5 [./a.js:7,0]
      Child /should not filter/:
    -     Hash: 70b5eb88941464457a7d
    +     Hash: 54f7e05266649c3e0cbf
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset      Size  Chunks             Chunk Names
          bundle.js  2.84 KiB       0  [emitted]  main
          Entrypoint main = bundle.js
    @@ -127,11 +127,11 @@
          
          WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction4 [./a.js:6,0]
          
          WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction5 [./a.js:7,0]
      Child warnings => false:
    -     Hash: 70b5eb88941464457a7d
    +     Hash: 54f7e05266649c3e0cbf
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset      Size  Chunks             Chunk Names
          bundle.js  2.84 KiB       0  [emitted]  main
          Entrypoint main = bundle.js
    @@ -156,11 +156,11 @@
          
          WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction4 [./a.js:6,0]
          
          WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction5 [./a.js:7,0]
      Child [should not filter]:
    -     Hash: 70b5eb88941464457a7d
    +     Hash: 54f7e05266649c3e0cbf
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset      Size  Chunks             Chunk Names
          bundle.js  2.84 KiB       0  [emitted]  main
          Entrypoint main = bundle.js
    @@ -185,11 +185,11 @@
          
          WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction4 [./a.js:6,0]
          
          WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction5 [./a.js:7,0]
      Child [/should not filter/]:
    -     Hash: 70b5eb88941464457a7d
    +     Hash: 54f7e05266649c3e0cbf
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset      Size  Chunks             Chunk Names
          bundle.js  2.84 KiB       0  [emitted]  main
          Entrypoint main = bundle.js
    @@ -214,11 +214,11 @@
          
          WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction4 [./a.js:6,0]
          
          WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction5 [./a.js:7,0]
      Child [warnings => false]:
    -     Hash: 70b5eb88941464457a7d
    +     Hash: 54f7e05266649c3e0cbf
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset      Size  Chunks             Chunk Names
          bundle.js  2.84 KiB       0  [emitted]  main
          Entrypoint main = bundle.js

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/MultiCompiler.js:247:12)
      at runWithDependencies.err (lib/MultiCompiler.js:270:6)
      at done (node_modules/neo-async/async.js:2920: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:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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 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,6 +1,6 @@
    - "Hash: c702ae26ba81472b32e2
    + "Hash: 851692446fcd41a46b43
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
         Asset       Size  Chunks             Chunk Names
          1.js  308 bytes       1  [emitted]  
          2.js  308 bytes       2  [emitted]  

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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

    @@ -1,6 +1,6 @@
    - "Hash: 743d85ad4b2a75a8a1fe
    + "Hash: 502478f07c73185486ce
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
         Asset       Size  Chunks             Chunk Names
          1.js  158 bytes       1  [emitted]  
      entry.js   8.46 KiB       0  [emitted]  entry

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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,18 +1,18 @@
    - "Hash: 90d3547ee72efa6dbcc0911d2dc5fcfb39a569f93d24722516f5a8ae39fd
    + "Hash: a69e61a88de76af7319cfe26877a916eaaa90bbb00363a49ef2051a12009
      Child
    -     Hash: 90d3547ee72efa6dbcc0
    +     Hash: a69e61a88de76af7319c
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                                           Asset       Size        Chunks             Chunk Names
              a-all~main-0034bb84916bcade4cc7.js  154 bytes      all~main  [emitted]  all~main
                  a-main-9407860001b0bf9acb00.js  108 bytes          main  [emitted]  main
          a-runtime~main-7b4918090cfe19b7778a.js   6.05 KiB  runtime~main  [emitted]  runtime~main
          Entrypoint main = a-runtime~main-7b4918090cfe19b7778a.js a-all~main-0034bb84916bcade4cc7.js a-main-9407860001b0bf9acb00.js
          [0] ./a.js 18 bytes {all~main} [built]
      Child
    -     Hash: 911d2dc5fcfb39a569f9
    +     Hash: fe26877a916eaaa90bbb
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                                           Asset       Size        Chunks             Chunk Names
              b-all~main-8fc824ada14cfa87179b.js  459 bytes      all~main  [emitted]  all~main
                  b-main-9b8bde6297868240e02c.js  123 bytes          main  [emitted]  main
    @@ -20,11 +20,11 @@
          b-vendors~main-13c0fc262f08dee65613.js  172 bytes  vendors~main  [emitted]  vendors~main
          Entrypoint main = b-runtime~main-7b4918090cfe19b7778a.js b-vendors~main-13c0fc262f08dee65613.js b-all~main-8fc824ada14cfa87179b.js b-main-9b8bde6297868240e02c.js
          [0] ./b.js 17 bytes {all~main} [built]
          [1] ./node_modules/vendor.js 23 bytes {vendors~main} [built]
      Child
    -     Hash: 3d24722516f5a8ae39fd
    +     Hash: 00363a49ef2051a12009
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                                           Asset       Size        Chunks             Chunk Names
              c-all~main-3f17001edc510ffa13b4.js  302 bytes      all~main  [emitted]  all~main
                    c-b0-08b1c51075eefabb49b0.js  462 bytes            b0  [emitted]  

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/MultiCompiler.js:247:12)
      at runWithDependencies.err (lib/MultiCompiler.js:270:6)
      at done (node_modules/neo-async/async.js:2920: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:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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,8 +1,8 @@
    - "Hash: 05e860caf71fe3b2d19aee833b1335bf5cefe6d3074451f01c7cf41c58065d34f2c917d77c3f99ff
    + "Hash: 860f097f5cdf3025f66433b6a378fc01ec9aed20357fa0ce0674bd36a2c21bced8ff885d5e1e68fa
      Child 1 chunks:
    -     Hash: 05e860caf71fe3b2d19a
    +     Hash: 860f097f5cdf3025f664
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
              Asset      Size  Chunks             Chunk Names
          bundle.js  6.39 KiB       0  [emitted]  main
          Entrypoint main = bundle.js
    @@ -12,11 +12,11 @@
           [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: ee833b1335bf5cefe6d3
    +     Hash: 33b6a378fc01ec9aed20
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                Asset       Size  Chunks             Chunk Names
          1.bundle.js  641 bytes       1  [emitted]  
            bundle.js   8.28 KiB       0  [emitted]  main
    @@ -28,11 +28,11 @@
           [2] ./b.js 22 bytes {1} [built]
           [3] ./c.js 30 bytes {1} [built]
           [4] ./d.js 22 bytes {1} [built]
           [5] ./e.js 22 bytes {1} [built]
      Child 3 chunks:
    -     Hash: 074451f01c7cf41c5806
    +     Hash: 357fa0ce0674bd36a2c2
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                Asset       Size  Chunks             Chunk Names
          1.bundle.js  494 bytes       1  [emitted]  
          2.bundle.js  232 bytes       2  [emitted]  
    @@ -46,11 +46,11 @@
           [4] ./d.js 22 bytes {1} [built]
          chunk    {2} 2.bundle.js 44 bytes <{0}> <{1}> [rendered]
           [2] ./b.js 22 bytes {2} [built]
           [5] ./e.js 22 bytes {2} [built]
      Child 4 chunks:
    -     Hash: 5d34f2c917d77c3f99ff
    +     Hash: 1bced8ff885d5e1e68fa
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                Asset       Size  Chunks             Chunk Names
          1.bundle.js  254 bytes       1  [emitted]  
          2.bundle.js  232 bytes       2  [emitted]  

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/MultiCompiler.js:247:12)
      at runWithDependencies.err (lib/MultiCompiler.js:270:6)
      at done (node_modules/neo-async/async.js:2920: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:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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 max-modules

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: ea77916a686e6ff33fde
    + "Hash: 2e85d8ce3e9a2cc39bee
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
        Asset      Size  Chunks             Chunk Names
      main.js  6.82 KiB       0  [emitted]  main
      Entrypoint main = main.js

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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 max-modules-default

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for max-modules-default 1".

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: ea77916a686e6ff33fde
    + "Hash: 2e85d8ce3e9a2cc39bee
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
        Asset      Size  Chunks             Chunk Names
      main.js  6.82 KiB       0  [emitted]  main
      Entrypoint main = main.js

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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-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: db7cfbdd82be5e125ed1
    + "Hash: 34ff26b57ae3bd8023c3
      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]

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: bcc5524fabd0531ea7ec
    + "Hash: 15494a08d1bd8f8d4c0b
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
          Asset       Size  Chunks             Chunk Names
       entry.js   6.45 KiB   entry  [emitted]  entry
      vendor.js  269 bytes  vendor  [emitted]  vendor

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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

    @@ -1,6 +1,6 @@
    - "Hash: a454fdfb8b7e03bca566
    + "Hash: 962f1f8ae64783c816da
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
                           Asset       Size                   Chunks             Chunk Names
      chunk-containing-__a_js.js  313 bytes  chunk-containing-__a_js  [emitted]  
      chunk-containing-__b_js.js  176 bytes  chunk-containing-__b_js  [emitted]  

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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 no-emit-on-errors-plugin-with-child-error

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for no-emit-on-errors-plugin-with-child-error 1".

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: f4c3d60da082a270faa2
    + "Hash: 4a86f1b2259500bd5b28
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
          Asset      Size  Chunks  Chunk Names
      bundle.js  3.57 KiB       0  main
       child.js  3.57 KiB          

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:169:13)
      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 onCompiled (lib/Compiler.js:167:21)
      at hooks.afterCompile.callAsync.err (lib/Compiler.js:496: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 compilation.seal.err (lib/Compiler.js:493:30)
      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 hooks.optimizeAssets.callAsync.err (lib/Compilation.js:1099:35)
      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 hooks.optimizeChunkAssets.callAsync.err (lib/Compilation.js:1090:32)

  ● 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,6 +1,6 @@
    - "Hash: 70072d2a8b68e26a566f
    + "Hash: 8ec60c006dbb1ca6e89a
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
                  Asset       Size  Chunks             Chunk Names
                  ab.js  201 bytes       1  [emitted]  ab
                 abd.js  259 bytes    2, 1  [emitted]  abd

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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 performance-different-mode-and-target

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for performance-different-mode-and-target 1".

    - Snapshot
    + Received

    @@ -1,8 +1,8 @@
    - "Hash: 14c687fa94e5597c25efbddc960367fc5c3136a64114eba737a6f1aade86c2f01aa8141bc3a117844617dac22b3202732c60c2f01aa8141bc3a117844114eba737a6f1aade86
    + "Hash: bcf868869c33872a8b7b068dc3a7531db36dff9b86866f96635c09069e579a0519568b920382d99971c4e90f7a0847a328279a0519568b920382d99986866f96635c09069e57
      Child
    -     Hash: 14c687fa94e5597c25ef
    +     Hash: bcf868869c33872a8b7b
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                       Asset     Size  Chunks                    Chunk Names
          warning.pro-web.js  297 KiB       0  [emitted]  [big]  main
          Entrypoint main [big] = warning.pro-web.js
    @@ -21,11 +21,11 @@
          
          WARNING in webpack performance recommendations: 
          You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
          For more info visit https://webpack.js.org/guides/code-splitting/
      Child
    -     Hash: bddc960367fc5c3136a6
    +     Hash: 068dc3a7531db36dff9b
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                             Asset     Size  Chunks                    Chunk Names
          warning.pro-webworker.js  297 KiB       0  [emitted]  [big]  main
          Entrypoint main [big] = warning.pro-webworker.js
    @@ -44,43 +44,43 @@
          
          WARNING in webpack performance recommendations: 
          You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
          For more info visit https://webpack.js.org/guides/code-splitting/
      Child
    -     Hash: 4114eba737a6f1aade86
    +     Hash: 86866f96635c09069e57
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                           Asset     Size  Chunks             Chunk Names
          no-warning.pro-node.js  297 KiB       0  [emitted]  main
          Entrypoint main = no-warning.pro-node.js
          [0] ./index.js 293 KiB {0} [built]
      Child
    -     Hash: c2f01aa8141bc3a11784
    +     Hash: 9a0519568b920382d999
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                          Asset      Size  Chunks             Chunk Names
          no-warning.dev-web.js  1.72 MiB    main  [emitted]  main
          Entrypoint main = no-warning.dev-web.js
          [./index.js] 293 KiB {main} [built]
      Child
    -     Hash: 4617dac22b3202732c60
    +     Hash: 71c4e90f7a0847a32827
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                           Asset      Size  Chunks             Chunk Names
          no-warning.dev-node.js  1.72 MiB    main  [emitted]  main
          Entrypoint main = no-warning.dev-node.js
          [./index.js] 293 KiB {main} [built]
      Child
    -     Hash: c2f01aa8141bc3a11784
    +     Hash: 9a0519568b920382d999
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                                         Asset      Size  Chunks                    Chunk Names
          no-warning.dev-web-with-limit-set.js  1.72 MiB    main  [emitted]  [big]  main
          Entrypoint main [big] = no-warning.dev-web-with-limit-set.js
          [./index.js] 293 KiB {main} [built]
      Child
    -     Hash: 4114eba737a6f1aade86
    +     Hash: 86866f96635c09069e57
          Time: Xms
          Built at: Thu Jan 01 1970 00:00:00 GMT
                                       Asset     Size  Chunks                    Chunk Names
          warning.pro-node-with-hints-set.js  297 KiB       0  [emitted]  [big]  main
          Entrypoint main [big] = warning.pro-node-with-hints-set.js

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/MultiCompiler.js:247:12)
      at runWithDependencies.err (lib/MultiCompiler.js:270:6)
      at done (node_modules/neo-async/async.js:2920: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:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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 preset-detailed

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: 9c6160ec4fc29981327f
    + "Hash: 3c67e234a8f44b936cfa
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
        Asset       Size  Chunks             Chunk Names
         1.js  152 bytes       1  [emitted]  
         2.js  289 bytes       2  [emitted]  

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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,6 +1,6 @@
    - "Hash: 9c6160ec4fc29981327f
    + "Hash: 3c67e234a8f44b936cfa
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
        Asset       Size  Chunks             Chunk Names
         1.js  152 bytes       1  [emitted]  
         2.js  289 bytes       2  [emitted]  

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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,6 +1,6 @@
    - "Hash: 9c6160ec4fc29981327f
    + "Hash: 3c67e234a8f44b936cfa
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
        Asset       Size  Chunks             Chunk Names
         1.js  152 bytes       1  [emitted]  
         2.js  289 bytes       2  [emitted]  

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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 resolve-plugin-context

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: f4f4d8286bfbdc8b84ef
    + "Hash: 13efae55c776ab50e608
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
          Asset      Size  Chunks             Chunk Names
      bundle.js  3.97 KiB       0  [emitted]  main
      Entrypoint main = bundle.js

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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 reverse-sort-modules

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for reverse-sort-modules 1".

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: ea77916a686e6ff33fde
    + "Hash: 2e85d8ce3e9a2cc39bee
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
        Asset      Size  Chunks             Chunk Names
      main.js  6.82 KiB       0  [emitted]  main
      Entrypoint main = main.js

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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-bailouts

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,9 +1,9 @@
    - "Hash: ad0f3aadc048885f764c
    + "Hash: 6099671d86b981db15a9
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
    - Entrypoint index = index.js
    + Entrypoint index = index.js index.html
      Entrypoint entry = entry.js
      [0] ./index.js 150 bytes {0} [built]
          ModuleConcatenation bailout: Cannot concat with ./entry.js (<- Module is an entry point)
          ModuleConcatenation bailout: Cannot concat with ./eval.js (<- Module uses eval())
          ModuleConcatenation bailout: Cannot concat with ./module-id.js (<- Module uses module.id)

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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: 9c5956258e368cde2cabd2d0b8494de69a915621
    + "Hash: 0212dc06b56e8d8e02817649cb09a17f7cd8a0c9
      Child
    -     Hash: 9c5956258e368cde2cab
    +     Hash: 0212dc06b56e8d8e0281
          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] ./first.js 207 bytes {0} [built]
    @@ -15,11 +15,11 @@
           [7] ./common_lazy.js 25 bytes {3} {4} [built]
           [8] ./common_lazy_shared.js 25 bytes {3} {4} {5} [built]
           [9] ./lazy_shared.js 31 bytes {5} [built]
          [10] ./lazy_second.js 55 bytes {4} [built]
      Child
    -     Hash: d2d0b8494de69a915621
    +     Hash: 7649cb09a17f7cd8a0c9
          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] ./first.js + 1 modules 248 bytes {0} [built]

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/MultiCompiler.js:247:12)
      at runWithDependencies.err (lib/MultiCompiler.js:270:6)
      at done (node_modules/neo-async/async.js:2920: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:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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,6 +1,6 @@
    - "Hash: c9825c8a11d5ea0724ca
    + "Hash: 894055949bf6b7a2305b
      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.31 KiB       0  [emitted]  main

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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 side-effects-simple-unused

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: e61a1b44b5d5ff642f09
    + "Hash: c6abab0e51c8b29aa9e7
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
        Asset     Size  Chunks             Chunk Names
      main.js  3.9 KiB       0  [emitted]  main
      Entrypoint main = main.js

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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 simple

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: fe175af6092f8c94dba0
    + "Hash: cf6579dd00e93de032e9
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
          Asset      Size  Chunks             Chunk Names
      bundle.js  3.75 KiB    main  [emitted]  main
      Entrypoint main = bundle.js

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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 simple-more-info

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "StatsTestCases should print correct stats for simple-more-info 1".

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: 78f8136e4695ed65147b
    + "Hash: d37da7dcea6c2923005c
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
          Asset      Size  Chunks             Chunk Names
      bundle.js  3.57 KiB       0  [emitted]  main
      Entrypoint main = bundle.js

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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 tree-shaking

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: 4b6adb1e2053794f2dd5
    + "Hash: 3189fde2f81abac3cc5b
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
          Asset      Size  Chunks             Chunk Names
      bundle.js  8.22 KiB       0  [emitted]  main
      Entrypoint main = bundle.js

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      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 warnings-terser

    expect(value).toMatchSnapshot()

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

    - Snapshot
    + Received

    @@ -1,6 +1,6 @@
    - "Hash: fa6b3521fcdefe0a2ec8
    + "Hash: 23ec47dcb8dd7aa14cca
      Time: Xms
      Built at: Thu Jan 01 1970 00:00:00 GMT
          Asset      Size  Chunks             Chunk Names
      bundle.js  2.84 KiB       0  [emitted]  main
      Entrypoint main = bundle.js

      134 | 					.replace(path.join(base, testName), "Xdir/" + testName)
      135 | 					.replace(/, additional resolving: Xms/g, "");
    > 136 | 				expect(actual).toMatchSnapshot();
          | 				               ^
      137 | 				done();
      138 | 			});
      139 | 		});

      at c.run (test/StatsTestCases.test.js:136:20)
      at finalCallback (lib/Compiler.js:153:39)
      at hooks.done.callAsync.err (lib/Compiler.js:202: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:200:22)
      at Compiler.emitRecords (lib/Compiler.js:315:39)
      at emitAssets.err (lib/Compiler.js:194:10)
      at hooks.afterEmit.callAsync.err (lib/Compiler.js:301: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.forEach.err (lib/Compiler.js:298:27)
      at done (node_modules/neo-async/async.js:2854:11)
      at node_modules/neo-async/async.js:2805:7
      at node_modules/graceful-fs/graceful-fs.js:43:10
      at node_modules/graceful-fs/graceful-fs.js:43:10

 › 42 snapshots failed.

Snapshot Summary
 › 42 snapshots failed from 1 test suite. Inspect your code changes or run `
Test Suites: 1 failed, 2 passed, 3 total
Tests:       42 failed, 8 skipped, 1728 passed, 1778 total
Snapshots:   42 failed, 45 passed, 87 total
Time:        21.1s, estimated 24s

See complete report here.

@michael-ciniawsky michael-ciniawsky referenced this pull request Sep 25, 2018

Open

feat(url): add asset module support (`url`) #6446

3 of 5 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment