mirror of https://github.com/webpack/webpack.git
commit
4f399322ad
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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]"]
|
||||
}
|
||||
};
|
||||
Loading…
Reference in New Issue