From 9ea2c2f0b9216ff5436a7fdbb51a642615377a54 Mon Sep 17 00:00:00 2001 From: axten Date: Thu, 16 Nov 2017 23:43:29 +0100 Subject: [PATCH 1/2] use loaderUtils.getOptions() --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 416414c..b099da3 100644 --- a/index.js +++ b/index.js @@ -9,8 +9,7 @@ var ejs = require('ejs'), 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['ejs-compiled-loader'] || {}, utils.getOptions(this)); opts.client = true; // Skip compile debug for production when running with From 18d5f79470429fdc59703da626ce0534b81a8a6c Mon Sep 17 00:00:00 2001 From: axten Date: Thu, 16 Nov 2017 23:45:54 +0100 Subject: [PATCH 2/2] update loader utils --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1e6e348..877d222 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "dependencies": { "ejs": "^2.0.0", "html-minifier": "^3", - "loader-utils": "^0.2.7", + "loader-utils": "^1.1.0", "merge": "^1.2.0", "uglify-js": "~2.6.1" },