Skip to content

Commit

Permalink
Merge pull request #6641 from tmilloff/master
Browse files Browse the repository at this point in the history
Fix #6634
  • Loading branch information
sokra committed Mar 6, 2018
2 parents 6879ab7 + 1181c0e commit 4f39932
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/WebpackOptionsDefaulter.js
Expand Up @@ -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");
Expand Down
@@ -0,0 +1 @@
it("should compile successfully when output.library is an array of strings", function() {});
@@ -0,0 +1,6 @@
module.exports = {
devtool: "source-map",
output: {
library: ["Foo", "[name]"]
}
};

0 comments on commit 4f39932

Please sign in to comment.