diff --git a/packages/webpack/src/config/base.js b/packages/webpack/src/config/base.js index efb8b7de30..a2a2cdd3b6 100644 --- a/packages/webpack/src/config/base.js +++ b/packages/webpack/src/config/base.js @@ -346,7 +346,7 @@ export default class WebpackBaseConfig { plugins.push(new VueLoader.VueLoaderPlugin()) - Array.prototype.push.apply(plugins, this.options.build.plugins || []) + plugins.push(...(this.options.build.plugins || [])) // Hide warnings about plugins without a default export (#1179) plugins.push(new WarnFixPlugin())