Skip to content

Commit d5e8ec7

Browse files
committed
fixed syntax from previous commit
1 parent 1c8fc31 commit d5e8ec7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lib/WebpackOptionsApply.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ WebpackOptionsApply.prototype.process = function(options, compiler) {
9494
var NodeTemplatePlugin = require("./node/NodeTemplatePlugin");
9595
var NodeTargetPlugin = require("./node/NodeTargetPlugin");
9696
compiler.apply(
97-
new NodeTemplatePlugin(options.target === "async-node"),
97+
new NodeTemplatePlugin({
98+
asyncChunkLoading: options.target === "async-node"
99+
}),
98100
new FunctionModulePlugin(options.output),
99101
new NodeTargetPlugin(),
100102
new LoaderTargetPlugin("node")
@@ -119,7 +121,9 @@ WebpackOptionsApply.prototype.process = function(options, compiler) {
119121
var NodeTargetPlugin = require("./node/NodeTargetPlugin");
120122
var ExternalsPlugin = require("./ExternalsPlugin");
121123
compiler.apply(
122-
new NodeTemplatePlugin(true),
124+
new NodeTemplatePlugin({
125+
asyncChunkLoading: true
126+
}),
123127
new FunctionModulePlugin(options.output),
124128
new NodeTargetPlugin(),
125129
new ExternalsPlugin("commonjs", [

0 commit comments

Comments
 (0)