From dd6758569bb2898b770c772c3248b3f63cba59cf Mon Sep 17 00:00:00 2001 From: Marc Steller Date: Tue, 24 Apr 2018 09:57:30 +0200 Subject: [PATCH] webpack 4 fix --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 416414c..6c04811 100644 --- a/index.js +++ b/index.js @@ -10,7 +10,7 @@ module.exports = function (source) { this.cacheable && this.cacheable(); var query = typeof this.query === 'object' ? this.query : utils.parseQuery(this.query); - var opts = merge(this.options['ejs-compiled-loader'] || {}, query); + var opts = merge(this.options && this.options['ejs-compiled-loader'] || {}, query); opts.client = true; // Skip compile debug for production when running with