File tree 1 file changed +0
-12
lines changed
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -119,18 +119,6 @@ class HtmlWebpackChildCompiler {
119
119
new LibraryTemplatePlugin ( 'HTML_WEBPACK_PLUGIN_RESULT' , 'var' ) . apply ( childCompiler ) ;
120
120
new LoaderTargetPlugin ( 'node' ) . apply ( childCompiler ) ;
121
121
122
- // Fix for "Uncaught TypeError: __webpack_require__(...) is not a function"
123
- // Hot module replacement requires that every child compiler has its own
124
- // cache. @see https://github.com/ampedandwired/html-webpack-plugin/pull/179
125
- childCompiler . hooks . compilation . tap ( 'HtmlWebpackPlugin' , compilation => {
126
- if ( compilation . cache ) {
127
- if ( ! compilation . cache [ compilerName ] ) {
128
- compilation . cache [ compilerName ] = { } ;
129
- }
130
- compilation . cache = compilation . cache [ compilerName ] ;
131
- }
132
- } ) ;
133
-
134
122
// Add all templates
135
123
this . templates . forEach ( ( template , index ) => {
136
124
new SingleEntryPlugin ( childCompiler . context , template , `HtmlWebpackPlugin_${ index } ` ) . apply ( childCompiler ) ;
You can’t perform that action at this time.
0 commit comments