We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 1b55838 commit a0a0f0dCopy full SHA for a0a0f0d
lib/loader.js
@@ -24,7 +24,7 @@ module.exports = function (source) {
24
// The following part renders the template with lodash as aminimalistic loader
25
//
26
// Get templating options
27
- const options = this.query !== '' ? loaderUtils.parseQuery(this.query) : {};
+ const options = this.query !== '' ? loaderUtils.getOptions(this) : {};
28
const template = _.template(source, _.defaults(options, { variable: 'data' }));
29
// Require !!lodash - using !! will disable all loaders (e.g. babel)
30
return 'var _ = require(' + loaderUtils.stringifyRequest(this, '!!' + require.resolve('lodash')) + ');' +
0 commit comments