Skip to content

Commit

Permalink
Fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Jan 25, 2019
1 parent 6091de2 commit 75b4827
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();

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

0 comments on commit 75b4827

Please sign in to comment.