Skip to content

Commit 4f39932

Browse files
authored
Merge pull request webpack#6641 from tmilloff/master
Fix webpack#6634
2 parents 6879ab7 + 1181c0e commit 4f39932

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

lib/WebpackOptionsDefaulter.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ class WebpackOptionsDefaulter extends OptionsDefaulter {
128128
}
129129
});
130130
this.set("output.devtoolNamespace", "make", options => {
131+
if (Array.isArray(options.output.library))
132+
return options.output.library.join(".");
131133
return options.output.library || "";
132134
});
133135
this.set("output.libraryTarget", "var");
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
it("should compile successfully when output.library is an array of strings", function() {});
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
devtool: "source-map",
3+
output: {
4+
library: ["Foo", "[name]"]
5+
}
6+
};

0 commit comments

Comments
 (0)