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')) + ');' +