Merge pull request #6641 from tmilloff/master

Fix #6634
This commit is contained in:
Tobias Koppers 2018-03-06 12:25:19 +01:00 committed by GitHub
commit 4f399322ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -128,6 +128,8 @@ class WebpackOptionsDefaulter extends OptionsDefaulter {
}
});
this.set("output.devtoolNamespace", "make", options => {
if (Array.isArray(options.output.library))
return options.output.library.join(".");
return options.output.library || "";
});
this.set("output.libraryTarget", "var");

View File

@ -0,0 +1 @@
it("should compile successfully when output.library is an array of strings", function() {});

View File

@ -0,0 +1,6 @@
module.exports = {
devtool: "source-map",
output: {
library: ["Foo", "[name]"]
}
};