We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58b9a04 commit 131bc08Copy full SHA for 131bc08
2 files changed
lib/DllPlugin.js
@@ -17,7 +17,7 @@ DllPlugin.prototype.apply = function(compiler) {
17
else
18
throw new Error("DllPlugin: supply an Array as entry");
19
}
20
- if(typeof entry === "object") {
+ if(typeof entry === "object" && !Array.isArray(entry)) {
21
Object.keys(entry).forEach(function(name) {
22
compiler.apply(itemToPlugin(entry[name], name));
23
});
lib/LibManifestPlugin.js
@@ -20,7 +20,7 @@ LibManifestPlugin.prototype.apply = function(compiler) {
hash: compilation.hash,
chunk: chunk
- var name = compilation.getPath(this.options.name, {
+ var name = this.options.name && compilation.getPath(this.options.name, {
24
25
26
0 commit comments