From a0a0f0dc755fbc3249aa2e1d1c6a4dd307ab8e8a Mon Sep 17 00:00:00 2001 From: Jan Nicklas Date: Tue, 20 Mar 2018 11:32:21 +0100 Subject: [PATCH] fix(loader): switch to loaderUtils.getOptions BREAKING CHANGE: switch to loaderUtils getOptions --- lib/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/loader.js b/lib/loader.js index e3836123..910dabf6 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -24,7 +24,7 @@ module.exports = function (source) { // The following part renders the template with lodash as aminimalistic loader // // Get templating options - const options = this.query !== '' ? loaderUtils.parseQuery(this.query) : {}; + const options = this.query !== '' ? loaderUtils.getOptions(this) : {}; const template = _.template(source, _.defaults(options, { variable: 'data' })); // Require !!lodash - using !! will disable all loaders (e.g. babel) return 'var _ = require(' + loaderUtils.stringifyRequest(this, '!!' + require.resolve('lodash')) + ');' +