Skip to content

Commit

Permalink
Add requested changes from PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Milloff committed Mar 5, 2018
1 parent fc0b327 commit 57c6c43
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WebpackOptionsDefaulter.js
Expand Up @@ -129,7 +129,7 @@ class WebpackOptionsDefaulter extends OptionsDefaulter {
});
this.set("output.devtoolNamespace", "make", options => {
if (Array.isArray(options.output.library))
return [].concat(options.output.library).join(".");
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,7 @@
module.exports = {
devtool: "source-map",
output: {
filename: "MyLibrary.[name].js",
library: ["Foo", "[name]"]
}
};

0 comments on commit 57c6c43

Please sign in to comment.