Skip to content

Commit

Permalink
Merge pull request #11 from ForsakenHarmony/patch-1
Browse files Browse the repository at this point in the history
Fix deprecation
  • Loading branch information
prateekbh authored Jan 25, 2019
2 parents 6091de2 + d92e9c1 commit ee41319
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ class BabelEsmPlugin {
Object.keys(compiler.options.entry).forEach(entry => {
const entryFiles = compiler.options.entry[entry]
if (Array.isArray(entryFiles)) {
childCompiler.apply(new MultiEntryPlugin(compiler.context, entryFiles, entry));
new MultiEntryPlugin(compiler.context, entryFiles, entry).apply(childCompiler);
} else {
childCompiler.apply(new SingleEntryPlugin(compiler.context, entryFiles, entry));
new SingleEntryPlugin(compiler.context, entryFiles, entry).apply(childCompiler);
}
});

// Convert entry chunk to entry file
childCompiler.apply(new JsonpTemplatePlugin());
new JsonpTemplatePlugin().apply(childCompiler);

if (compiler.options.optimization) {
if (compiler.options.optimization.splitChunks) {
Expand Down

0 comments on commit ee41319

Please sign in to comment.