Skip to content

Commit

Permalink
Merge pull request microsoft#34 from L1uD0ngq1/master
Browse files Browse the repository at this point in the history
Webpack createChildCompiler api will drop SingleEntryPlugin complication hook
  • Loading branch information
alexdima committed Sep 13, 2018
2 parents d2e728f + 71327a4 commit f9243c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/AddWorkerEntryPointPlugin.js
Expand Up @@ -15,9 +15,10 @@ function getCompilerHook(compiler, {id, entry, filename, chunkFilename, plugins}
const childCompiler = compilation.createChildCompiler(id, outputOptions, [
new WebWorkerTemplatePlugin(),
new LoaderTargetPlugin('webworker'),
new SingleEntryPlugin(compiler.context, entry, 'main'),
]);
new SingleEntryPlugin(compiler.context, entry, 'main').apply(childCompiler);
plugins.forEach((plugin) => plugin.apply(childCompiler));

childCompiler.runAsChild(callback);
}
}
Expand Down

0 comments on commit f9243c1

Please sign in to comment.