Skip to content

Commit

Permalink
feat: overrule module output
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Feb 3, 2021
1 parent 10a0c5e commit a43ab72
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/child-compiler.js
Expand Up @@ -95,8 +95,8 @@ class HtmlWebpackChildCompiler {
type: 'var',
name: 'HTML_WEBPACK_PLUGIN_RESULT'
},
/** @type {'text/javascript'} */
scriptType: (/** @type {'text/javascript'} */'text/javascript')
scriptType: /** @type {'text/javascript'} */('text/javascript'),
iife: true
};
const compilerName = 'HtmlWebpackCompiler';
// Create an additional child compiler which takes the template
Expand Down Expand Up @@ -152,9 +152,6 @@ class HtmlWebpackChildCompiler {
if (childCompilation && childCompilation.errors && childCompilation.errors.length) {
const errorDetails = childCompilation.errors.map(error => {
let message = error.message;
if ('error' in error) {
message += ':\n' + error.error;
}
if (error.stack) {
message += '\n' + error.stack;
}
Expand Down

0 comments on commit a43ab72

Please sign in to comment.