diff --git a/package.json b/package.json index 954f232..80bd29a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webpack-chain", - "version": "1.0.0", + "version": "1.0.1", "main": "src/Config.js", "repository": "mozilla-rpweb/webpack-chain", "keywords": [ diff --git a/src/Config.js b/src/Config.js index d0bea1d..93c4265 100644 --- a/src/Config.js +++ b/src/Config.js @@ -57,7 +57,7 @@ module.exports = class { toConfig() { const entries = this.entries.entries(); - const config = Object.assign(this.options.entries(), { + const config = Object.assign({}, this.options.entries(), { node: this.node.entries(), output: this.output.entries(), resolve: this.resolve.toConfig(), @@ -65,7 +65,7 @@ module.exports = class { devServer: this.devServer.entries(), plugins: this.plugins.values().map(value => value.init(value.plugin, value.args)), module: this.module.toConfig(), - entry: Object + entry: entries && Object .keys(entries) .reduce((acc, key) => { acc[key] = entries[key].values();