From df097ebb65d310a7094b58dee6c4c00d0a092ea2 Mon Sep 17 00:00:00 2001 From: benbakhar Date: Sun, 25 Mar 2018 13:56:26 +0300 Subject: [PATCH] protect property loookup --- app/vue/src/server/config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/vue/src/server/config.js b/app/vue/src/server/config.js index f326c4e5579..4318a5a647e 100644 --- a/app/vue/src/server/config.js +++ b/app/vue/src/server/config.js @@ -71,7 +71,10 @@ export default function(configType, baseConfig, configDir) { ...config.module, // We need to use our and custom rules. ...customConfig.module, - rules: [...config.module.rules, ...(customConfig.module.rules || [])], + rules: [ + ...config.module.rules, + ...((customConfig.module && customConfig.module.rules) || []), + ], }, resolve: { ...config.resolve,