From ec4b49710bdb3107d059786884c31586020f3e57 Mon Sep 17 00:00:00 2001 From: Alexandre Paixao Date: Fri, 3 May 2019 09:54:50 +0200 Subject: [PATCH] Update webpack rule to be compatible with webpack4 Global options are not available anymore in webpack 4 --- src/webpack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webpack.js b/src/webpack.js index f03bc0e..a9e5d6d 100644 --- a/src/webpack.js +++ b/src/webpack.js @@ -25,7 +25,7 @@ function webpackLoader(source: string): void { const opts = { ...params, ...query, - ...this.options.configLoader || {} + ...(this.options && this.options.configLoader) || {} } const templateArgs = {