File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -95,8 +95,8 @@ class HtmlWebpackChildCompiler {
95
95
type : 'var' ,
96
96
name : 'HTML_WEBPACK_PLUGIN_RESULT'
97
97
} ,
98
- /** @type {'text/javascript' } */
99
- scriptType : ( /** @type { 'text/javascript' } */ 'text/javascript' )
98
+ scriptType : /** @type {'text/javascript' } */ ( 'text/javascript' ) ,
99
+ iife : true
100
100
} ;
101
101
const compilerName = 'HtmlWebpackCompiler' ;
102
102
// Create an additional child compiler which takes the template
@@ -152,9 +152,6 @@ class HtmlWebpackChildCompiler {
152
152
if ( childCompilation && childCompilation . errors && childCompilation . errors . length ) {
153
153
const errorDetails = childCompilation . errors . map ( error => {
154
154
let message = error . message ;
155
- if ( 'error' in error ) {
156
- message += ':\n' + error . error ;
157
- }
158
155
if ( error . stack ) {
159
156
message += '\n' + error . stack ;
160
157
}
You can’t perform that action at this time.
0 commit comments