File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11
11
*
12
12
*/
13
13
'use strict' ;
14
- const NodeTemplatePlugin = require ( 'webpack/lib/node/NodeTemplatePlugin' ) ;
15
- const NodeTargetPlugin = require ( 'webpack/lib/node/NodeTargetPlugin' ) ;
16
- const LoaderTargetPlugin = require ( 'webpack/lib/LoaderTargetPlugin' ) ;
17
- const SingleEntryPlugin = require ( 'webpack/lib/SingleEntryPlugin' ) ;
18
14
19
15
let instanceId = 0 ;
20
16
/**
@@ -79,6 +75,11 @@ class HtmlWebpackChildCompiler {
79
75
const webpack = mainCompilation . compiler . webpack ;
80
76
const Compilation = webpack . Compilation ;
81
77
78
+ const NodeTemplatePlugin = webpack . node . NodeTemplatePlugin ;
79
+ const NodeTargetPlugin = webpack . node . NodeTargetPlugin ;
80
+ const LoaderTargetPlugin = webpack . LoaderTargetPlugin ;
81
+ const SingleEntryPlugin = webpack . SingleEntryPlugin ;
82
+
82
83
// To prevent multiple compilations for the same template
83
84
// the compilation is cached in a promise.
84
85
// If it already exists return
You can’t perform that action at this time.
0 commit comments