Repository: webpack/webpack
Pull request #7673 (2018-07-06 11:13:14)

Use JsonpMainTemplatePlugin.hooks instead of MainTemplate#hooks
Refactor `JsonpMainTemplatePlugin` plugin to change how hooks are installed into `MainTemplate`.
cc @jantimon

**What kind of change does this PR introduce?**

refactoring

**Did you add tests for your changes?**

no

**Does this PR introduce a breaking change?**

yes

**What needs to be documented once your changes are merged?**

Maybe `JsonpMainTemplatePlugin.hooks`.

webpack-bot: <!-- identifier: admin-actions -->

*For maintainers only:*

* [ ] <!-- document --> This need to be documented (issue in webpack/webpack.js.org will be filed when merged)
webpack-bot: <!-- identifier: ci-result -->

The basic integration tests failed.

@ooflorent Please review the following output log for errors:

```text
FAIL test/ConfigTestCases.test.js (18.988s)
  ● ConfigTestCases › commons-chunk-plugin › correct-order › correct-order should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
```
<details>
  <summary>Show remaining errors</summary>

```text
  ● ConfigTestCases › commons-chunk-plugin › extract-async-from-entry › extract-async-from-entry should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● ConfigTestCases › commons-chunk-plugin › hot › hot should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● ConfigTestCases › commons-chunk-plugin › hot-multi › hot-multi should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● ConfigTestCases › commons-chunk-plugin › inverted-order › inverted-order should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● ConfigTestCases › commons-chunk-plugin › library › library should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● ConfigTestCases › commons-chunk-plugin › move-entry › move-entry should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● ConfigTestCases › commons-chunk-plugin › simple › simple should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● ConfigTestCases › crossorigin › set-crossorigin › set-crossorigin should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● ConfigTestCases › externals › externals-in-commons-chunk › externals-in-commons-chunk should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● ConfigTestCases › hash-length › output-filename › output-filename should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● ConfigTestCases › issues › issue-7563 › issue-7563 should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● ConfigTestCases › parsing › harmony-global › harmony-global should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● ConfigTestCases › parsing › node-source-plugin › node-source-plugin should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● ConfigTestCases › parsing › node-source-plugin-off › node-source-plugin-off should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● ConfigTestCases › split-chunks › no-options › no-options should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:9:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● ConfigTestCases › split-chunks › runtime-chunk › runtime-chunk should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● ConfigTestCases › split-chunks › runtime-chunk-no-async › runtime-chunk-no-async should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● ConfigTestCases › target › buffer › buffer should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● ConfigTestCases › target › buffer-default › buffer-default should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● ConfigTestCases › target › electron-renderer › electron-renderer should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● ConfigTestCases › target › strict-mode-global › strict-mode-global should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● ConfigTestCases › target › web › web should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● ConfigTestCases › web › prefetch-preload › prefetch-preload should compile

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

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

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:9:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

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

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:9:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● StatsTestCases › should print correct stats for async-commons-chunk

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● StatsTestCases › should print correct stats for async-commons-chunk-auto

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● StatsTestCases › should print correct stats for chunk-module-id-range

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● StatsTestCases › should print correct stats for chunks

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● StatsTestCases › should print correct stats for chunks-development

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● StatsTestCases › should print correct stats for circular-correctness

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● StatsTestCases › should print correct stats for color-disabled

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● StatsTestCases › should print correct stats for color-enabled

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● StatsTestCases › should print correct stats for color-enabled-custom

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● StatsTestCases › should print correct stats for commons-chunk-min-size-0

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● StatsTestCases › should print correct stats for commons-chunk-min-size-Infinity

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● StatsTestCases › should print correct stats for commons-plugin-issue-4980

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● StatsTestCases › should print correct stats for concat-and-sideeffects

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● StatsTestCases › should print correct stats for define-plugin

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

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

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● StatsTestCases › should print correct stats for external

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)

  ● StatsTestCases › should print correct stats for filter-warnings

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for graph-correctness-entries

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for graph-correctness-modules

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

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

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for import-weak

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for import-with-invalid-options-comments

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for issue-7577

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

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

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for max-modules

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for max-modules-default

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for module-assets

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for module-deduplication

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

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

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for module-trace-disabled-in-error

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for module-trace-enabled-in-error

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for named-chunk-groups

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

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

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

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

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for no-emit-on-errors-plugin-with-child-error

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for optimize-chunks

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for parse-error

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for performance-different-mode-and-target

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for performance-disabled

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for performance-error

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for performance-no-async-chunks-shown

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for performance-no-hints

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for performance-oversize-limit-error

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for prefetch

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for prefetch-preload-mixed

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for preload

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for preset-detailed

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for preset-errors-only

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for preset-errors-only-error

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for preset-minimal

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for preset-minimal-simple

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for preset-mixed-array

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for preset-none

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for preset-none-array

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for preset-none-error

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for preset-normal

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for preset-normal-performance

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for preset-normal-performance-ensure-filter-sourcemaps

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for preset-verbose

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for resolve-plugin-context

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for reverse-sort-modules

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for runtime-chunk

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at _err0 (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:11:1)
      at compiler.hooks.run.tapAsync (lib/CachePlugin.js:52:13)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:7:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)

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

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for runtime-chunk-issue-7382

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at _err0 (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:11:1)
      at compiler.hooks.run.tapAsync (lib/CachePlugin.js:52:13)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:7:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)

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

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at _err0 (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:11:1)
      at compiler.hooks.run.tapAsync (lib/CachePlugin.js:52:13)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:7:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)

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

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

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

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

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

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for side-effects-simple-unused

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for simple

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at _err0 (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:11:1)
      at compiler.hooks.run.tapAsync (lib/CachePlugin.js:52:13)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:7:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)

  ● StatsTestCases › should print correct stats for simple-more-info

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for split-chunks

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for split-chunks-combinations

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for split-chunks-issue-6413

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for split-chunks-issue-6696

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for split-chunks-issue-7401

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for split-chunks-max-size

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for split-chunks-prefer-bigger-splits

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for tree-shaking

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)

  ● StatsTestCases › should print correct stats for warnings-uglifyjs

    ReferenceError: mainTemplateHooks is not defined

      143 | 		);
      144 | 
    > 145 | 		const mainTemplateHooks = JsonpMainTemplatePlugin.hooks(mainTemplateHooks);
          | 		                                                        ^
      146 | 
      147 | 		mainTemplateHooks.jsonpScript.tap(
      148 | 			"JsonpMainTemplatePlugin",

      at JsonpMainTemplatePlugin.apply (lib/web/JsonpMainTemplatePlugin.js:145:59)
      at compiler.hooks.thisCompilation.tap.compilation (lib/web/JsonpTemplatePlugin.js:14:34)
      at SyncHook.eval (eval at create (node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
      at SyncHook.lazyCompileHook [as _call] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.newCompilation (lib/Compiler.js:444:30)
      at hooks.beforeCompile.callAsync.err (lib/Compiler.js:481:29)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at Compiler.compile (lib/Compiler.js:476:28)
      at readRecords.err (lib/Compiler.js:215:11)
      at Compiler.readRecords (lib/Compiler.js:343:11)
      at hooks.run.callAsync.err (lib/Compiler.js:212:10)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook [as _callAsync] (node_modules/tapable/lib/Hook.js:35:21)
      at hooks.beforeRun.callAsync.err (lib/Compiler.js:209:19)
      at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:15:1)
```
</details>

```text
Test Suites: 2 failed, 1 passed, 3 total
Tests:       106 failed, 8 skipped, 1103 passed, 1217 total
Snapshots:   2 passed, 2 total
Time:        21.042s, estimated 24s
```

See [complete report here](https://travis-ci.org/webpack/webpack/builds/400838594?utm_source&#x3D;github_status&amp;utm_medium&#x3D;notification).

Patch:
diff --git a/lib/BannerPlugin.js b/lib/BannerPlugin.js
index 3cd9cee78..1e9aa343c 100644
--- a/lib/BannerPlugin.js
+++ b/lib/BannerPlugin.js
@@ -23,7 +23,13 @@ const wrapComment = str => {
 };
 
 class BannerPlugin {
-	constructor(options = {}) {
+	constructor(options) {
+		if (arguments.length > 1) {
+			throw new Error(
+				"BannerPlugin only takes one argument (pass an options object)"
+			);
+		}
+
 		validateOptions(schema, options, "Banner Plugin");
 
 		if (typeof options === "string" || typeof options === "function") {
@@ -32,7 +38,7 @@ class BannerPlugin {
 			};
 		}
 
-		this.options = options;
+		this.options = options || {};
 
 		if (typeof options.banner === "function") {
 			const getBanner = this.options.banner;
diff --git a/lib/Compilation.js b/lib/Compilation.js
index 7abfe9997..ebc3b56ac 100644
--- a/lib/Compilation.js
+++ b/lib/Compilation.js
@@ -1439,6 +1439,8 @@ class Compilation {
 	 * @returns {DependencyReference} a reference for the dependency
 	 */
 	getDependencyReference(module, dependency) {
+		// TODO remove dep.getReference existance check in webpack 5
+		if (typeof dependency.getReference !== "function") return null;
 		const ref = dependency.getReference();
 		if (!ref) return null;
 		return this.hooks.dependencyReference.call(ref, dependency, module);
diff --git a/lib/EvalSourceMapDevToolPlugin.js b/lib/EvalSourceMapDevToolPlugin.js
index f168f866c..daf9aaddf 100644
--- a/lib/EvalSourceMapDevToolPlugin.js
+++ b/lib/EvalSourceMapDevToolPlugin.js
@@ -7,25 +7,22 @@
 const EvalSourceMapDevToolModuleTemplatePlugin = require("./EvalSourceMapDevToolModuleTemplatePlugin");
 const SourceMapDevToolModuleOptionsPlugin = require("./SourceMapDevToolModuleOptionsPlugin");
 
-/** @typedef {import("./Compiler")} Compiler */
-
 class EvalSourceMapDevToolPlugin {
-	/**
-	 * @param {TODO} options Options object
-	 */
-	constructor(options = {}) {
+	constructor(options) {
+		if (arguments.length > 1) {
+			throw new Error(
+				"EvalSourceMapDevToolPlugin only takes one argument (pass an options object)"
+			);
+		}
 		if (typeof options === "string") {
 			options = {
 				append: options
 			};
 		}
+		if (!options) options = {};
 		this.options = options;
 	}
 
-	/**
-	 * @param {Compiler} compiler Webpack Compiler
-	 * @returns {void}
-	 */
 	apply(compiler) {
 		const options = this.options;
 		compiler.hooks.compilation.tap(
diff --git a/lib/SourceMapDevToolPlugin.js b/lib/SourceMapDevToolPlugin.js
index 12b7499b9..111d7a877 100644
--- a/lib/SourceMapDevToolPlugin.js
+++ b/lib/SourceMapDevToolPlugin.js
@@ -13,6 +13,11 @@ const createHash = require("./util/createHash");
 const validateOptions = require("schema-utils");
 const schema = require("../schemas/plugins/SourceMapDevToolPlugin.json");
 
+const basename = name => {
+	if (!name.includes("/")) return name;
+	return name.substr(name.lastIndexOf("/") + 1);
+};
+
 const assetsCache = new WeakMap();
 
 const getTaskForFile = (file, chunk, options, compilation) => {
@@ -47,9 +52,16 @@ const getTaskForFile = (file, chunk, options, compilation) => {
 };
 
 class SourceMapDevToolPlugin {
-	constructor(options = {}) {
-		validateOptions(schema, options, "SourceMap DevTool Plugin");
+	constructor(options) {
+		if (arguments.length > 1) {
+			throw new Error(
+				"SourceMapDevToolPlugin only takes one argument (pass an options object)"
+			);
+		}
+
+		validateOptions(schema, options || {}, "SourceMap DevTool Plugin");
 
+		if (!options) options = {};
 		this.sourceMapFilename = options.filename;
 		this.sourceMappingURLComment =
 			options.append === false
@@ -240,7 +252,7 @@ class SourceMapDevToolPlugin {
 									? path.relative(options.fileContext, filename)
 									: filename,
 								query,
-								basename: path.basename(filename),
+								basename: basename(filename),
 								contentHash: createHash("md4")
 									.update(sourceMapString)
 									.digest("hex")
diff --git a/lib/web/JsonpMainTemplatePlugin.js b/lib/web/JsonpMainTemplatePlugin.js
index 018d2147b..adebde844 100644
--- a/lib/web/JsonpMainTemplatePlugin.js
+++ b/lib/web/JsonpMainTemplatePlugin.js
@@ -5,9 +5,30 @@
 "use strict";
 
 const { SyncWaterfallHook } = require("tapable");
+const MainTemplate = require("../MainTemplate");
 const Template = require("../Template");
 
+const mainTemplateHooksMap = new WeakMap();
+
 class JsonpMainTemplatePlugin {
+	static getHooks(mainTemplate) {
+		if (!(mainTemplate instanceof MainTemplate)) {
+			throw new TypeError(
+				"The 'mainTemplate' argument must be an instance of MainTemplate"
+			);
+		}
+		let hooks = mainTemplateHooksMap.get(mainTemplate);
+		if (hooks === undefined) {
+			hooks = {
+				jsonpScript: new SyncWaterfallHook(["source", "chunk", "hash"]),
+				linkPreload: new SyncWaterfallHook(["source", "chunk", "hash"]),
+				linkPrefetch: new SyncWaterfallHook(["source", "chunk", "hash"])
+			};
+			mainTemplateHooksMap.set(mainTemplate, hooks);
+		}
+		return hooks;
+	}
+
 	apply(mainTemplate) {
 		const needChunkOnDemandLoadingCode = chunk => {
 			for (const chunkGroup of chunk.groupsIterable) {
@@ -33,17 +54,6 @@ class JsonpMainTemplatePlugin {
 			return allPrefetchChunks && Object.keys(allPrefetchChunks).length;
 		};
 
-		// TODO webpack 5, no adding to .hooks, use WeakMap and static methods
-		["jsonpScript", "linkPreload", "linkPrefetch"].forEach(hook => {
-			if (!mainTemplate.hooks[hook]) {
-				mainTemplate.hooks[hook] = new SyncWaterfallHook([
-					"source",
-					"chunk",
-					"hash"
-				]);
-			}
-		});
-
 		const getScriptSrcPath = (hash, chunk, chunkIdExpression) => {
 			const chunkFilename = mainTemplate.outputOptions.chunkFilename;
 			const chunkMaps = chunk.getChunkMaps();
@@ -138,7 +148,9 @@ class JsonpMainTemplatePlugin {
 			}
 		);
 
-		mainTemplate.hooks.jsonpScript.tap(
+		const mainTemplateHooks = JsonpMainTemplatePlugin.getHooks(mainTemplate);
+
+		mainTemplateHooks.jsonpScript.tap(
 			"JsonpMainTemplatePlugin",
 			(_, chunk, hash) => {
 				const crossOriginLoading =
@@ -201,7 +213,7 @@ class JsonpMainTemplatePlugin {
 				]);
 			}
 		);
-		mainTemplate.hooks.linkPreload.tap(
+		mainTemplateHooks.linkPreload.tap(
 			"JsonpMainTemplatePlugin",
 			(_, chunk, hash) => {
 				const crossOriginLoading =
@@ -234,7 +246,7 @@ class JsonpMainTemplatePlugin {
 				]);
 			}
 		);
-		mainTemplate.hooks.linkPrefetch.tap(
+		mainTemplateHooks.linkPrefetch.tap(
 			"JsonpMainTemplatePlugin",
 			(_, chunk, hash) => {
 				const crossOriginLoading =
@@ -283,7 +295,7 @@ class JsonpMainTemplatePlugin {
 							"",
 							"// start chunk loading",
 							"var head = document.getElementsByTagName('head')[0];",
-							mainTemplate.hooks.jsonpScript.call("", chunk, hash),
+							mainTemplateHooks.jsonpScript.call("", chunk, hash),
 							"head.appendChild(script);"
 						]),
 						"}"
@@ -316,7 +328,7 @@ class JsonpMainTemplatePlugin {
 							"if(installedChunks[chunkId] === undefined) {",
 							Template.indent([
 								"installedChunks[chunkId] = null;",
-								mainTemplate.hooks.linkPreload.call("", chunk, hash),
+								mainTemplateHooks.linkPreload.call("", chunk, hash),
 								"head.appendChild(link);"
 							]),
 							"}"
@@ -394,7 +406,7 @@ class JsonpMainTemplatePlugin {
 											"if(installedChunks[chunkId] === undefined) {",
 											Template.indent([
 												"installedChunks[chunkId] = null;",
-												mainTemplate.hooks.linkPrefetch.call("", chunk, hash),
+												mainTemplateHooks.linkPrefetch.call("", chunk, hash),
 												"head.appendChild(link);"
 											]),
 											"}"
diff --git a/lib/web/WebEnvironmentPlugin.js b/lib/web/WebEnvironmentPlugin.js
new file mode 100644
index 000000000..9b0df5746
--- /dev/null
+++ b/lib/web/WebEnvironmentPlugin.js
@@ -0,0 +1,18 @@
+/*
+	MIT License http://www.opensource.org/licenses/mit-license.php
+	Author Tobias Koppers @sokra
+*/
+"use strict";
+
+class WebEnvironmentPlugin {
+	constructor(inputFileSystem, outputFileSystem) {
+		this.inputFileSystem = inputFileSystem;
+		this.outputFileSystem = outputFileSystem;
+	}
+
+	apply(compiler) {
+		compiler.outputFileSystem = this.outputFileSystem;
+	}
+}
+
+module.exports = WebEnvironmentPlugin;
diff --git a/lib/webpack.web.js b/lib/webpack.web.js
new file mode 100644
index 000000000..1f60eab7f
--- /dev/null
+++ b/lib/webpack.web.js
@@ -0,0 +1,31 @@
+/*
+	MIT License http://www.opensource.org/licenses/mit-license.php
+	Author Tobias Koppers @sokra
+*/
+"use strict";
+
+const Compiler = require("./Compiler");
+const WebEnvironmentPlugin = require("./web/WebEnvironmentPlugin");
+const WebpackOptionsApply = require("./WebpackOptionsApply");
+const WebpackOptionsDefaulter = require("./WebpackOptionsDefaulter");
+
+const webpack = (options, callback) => {
+	new WebpackOptionsDefaulter().process(options);
+
+	const compiler = new Compiler();
+	compiler.options = new WebpackOptionsApply().process(options, compiler);
+	new WebEnvironmentPlugin(
+		options.inputFileSystem,
+		options.outputFileSystem
+	).apply(compiler);
+	if (callback) {
+		compiler.run(callback);
+	}
+	return compiler;
+};
+module.exports = webpack;
+
+webpack.WebpackOptionsDefaulter = WebpackOptionsDefaulter;
+webpack.WebpackOptionsApply = WebpackOptionsApply;
+webpack.Compiler = Compiler;
+webpack.WebEnvironmentPlugin = WebEnvironmentPlugin;
diff --git a/package.json b/package.json
index 96d46dc80..69bb0a38d 100644
--- a/package.json
+++ b/package.json
@@ -90,6 +90,7 @@
   },
   "homepage": "https://github.com/webpack/webpack",
   "main": "lib/webpack.js",
+  "web": "lib/webpack.web.js",
   "bin": "./bin/webpack.js",
   "files": [
     "lib/",


Test patch:
diff --git a/test/WebEnvironmentPlugin.unittest.js b/test/WebEnvironmentPlugin.unittest.js
new file mode 100644
index 000000000..137956a00
--- /dev/null
+++ b/test/WebEnvironmentPlugin.unittest.js
@@ -0,0 +1,23 @@
+"use strict";
+
+const WebEnvironmentPlugin = require("../lib/web/WebEnvironmentPlugin");
+
+describe("WebEnvironmentPlugin", () => {
+	describe("apply", () => {
+		const WebEnvironmentPluginInstance = new WebEnvironmentPlugin(
+			"inputFileSystem",
+			"outputFileSystem"
+		);
+		const compileSpy = {
+			outputFileSystem: "otherOutputFileSystem"
+		};
+
+		WebEnvironmentPluginInstance.apply(compileSpy);
+
+		it("should set compiler.outputFileSystem information with the same as set in WebEnvironmentPlugin", () => {
+			expect(compileSpy.outputFileSystem).toBe(
+				WebEnvironmentPluginInstance.outputFileSystem
+			);
+		});
+	});
+});