From 320d1ba283cf32dd05653ada07f06d1c3e71dd4f Mon Sep 17 00:00:00 2001 From: Ricardo Gobbo de Souza Date: Thu, 12 Apr 2018 17:42:50 -0300 Subject: [PATCH] chore(options): vendor backward compability with nuxt 1.x (#3218) --- lib/common/options.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/common/options.js b/lib/common/options.js index 4e2ab17d0a..6575c73edc 100644 --- a/lib/common/options.js +++ b/lib/common/options.js @@ -182,6 +182,11 @@ Options.from = function (_options) { options.build.stats = false } + // Vendor backward compability with nuxt 1.x + if (!options.build.vendor) { + options.build.vendor = [] + } + // TODO: remove when mini-css-extract-plugin supports HMR if (options.dev) { options.build.extractCSS = false