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 = {