diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:01:11 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:02:09 +0200 |
commit | 363723fc84f7b8477592e0105aeb331ec9a017af (patch) | |
tree | 29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/webpack/lib/WebpackOptionsApply.js | |
parent | 5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff) |
node_modules
Diffstat (limited to 'node_modules/webpack/lib/WebpackOptionsApply.js')
-rw-r--r-- | node_modules/webpack/lib/WebpackOptionsApply.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/node_modules/webpack/lib/WebpackOptionsApply.js b/node_modules/webpack/lib/WebpackOptionsApply.js index e9231447c..ebddba717 100644 --- a/node_modules/webpack/lib/WebpackOptionsApply.js +++ b/node_modules/webpack/lib/WebpackOptionsApply.js @@ -73,7 +73,7 @@ class WebpackOptionsApply extends OptionsApply { new JsonpTemplatePlugin(options.output),
new FunctionModulePlugin(options.output),
new NodeSourcePlugin(options.node),
- new LoaderTargetPlugin("web")
+ new LoaderTargetPlugin(options.target)
);
break;
case "webworker":
@@ -84,7 +84,7 @@ class WebpackOptionsApply extends OptionsApply { new WebWorkerTemplatePlugin(),
new FunctionModulePlugin(options.output),
new NodeSourcePlugin(options.node),
- new LoaderTargetPlugin("webworker")
+ new LoaderTargetPlugin(options.target)
);
break;
}
@@ -110,7 +110,7 @@ class WebpackOptionsApply extends OptionsApply { new FunctionModulePlugin(options.output),
new NodeTargetPlugin(),
new ExternalsPlugin("commonjs", "nw.gui"),
- new LoaderTargetPlugin("node-webkit")
+ new LoaderTargetPlugin(options.target)
);
break;
case "atom":
@@ -187,7 +187,7 @@ class WebpackOptionsApply extends OptionsApply { if(options.output.library || options.output.libraryTarget !== "var") {
let LibraryTemplatePlugin = require("./LibraryTemplatePlugin");
- compiler.apply(new LibraryTemplatePlugin(options.output.library, options.output.libraryTarget, options.output.umdNamedDefine, options.output.auxiliaryComment || ""));
+ compiler.apply(new LibraryTemplatePlugin(options.output.library, options.output.libraryTarget, options.output.umdNamedDefine, options.output.auxiliaryComment || "", options.output.libraryExport));
}
if(options.externals) {
ExternalsPlugin = require("./ExternalsPlugin");
@@ -247,7 +247,7 @@ class WebpackOptionsApply extends OptionsApply { new UseStrictPlugin(),
new RequireIncludePlugin(),
new RequireEnsurePlugin(),
- new RequireContextPlugin(options.resolve.modules, options.resolve.extensions),
+ new RequireContextPlugin(options.resolve.modules, options.resolve.extensions, options.resolve.mainFiles),
new ImportPlugin(options.module),
new SystemPlugin(options.module)
);
|