mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +01:00
Merge pull request #34 from L1uD0ngq1/master
Webpack createChildCompiler api will drop SingleEntryPlugin complication hook
This commit is contained in:
commit
f9243c19e4
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue