Skip to content

Commit a0a0f0d

Browse files
committedJun 3, 2018
fix(loader): switch to loaderUtils.getOptions
BREAKING CHANGE: switch to loaderUtils getOptions
1 parent 1b55838 commit a0a0f0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = function (source) {
2424
// The following part renders the template with lodash as aminimalistic loader
2525
//
2626
// Get templating options
27-
const options = this.query !== '' ? loaderUtils.parseQuery(this.query) : {};
27+
const options = this.query !== '' ? loaderUtils.getOptions(this) : {};
2828
const template = _.template(source, _.defaults(options, { variable: 'data' }));
2929
// Require !!lodash - using !! will disable all loaders (e.g. babel)
3030
return 'var _ = require(' + loaderUtils.stringifyRequest(this, '!!' + require.resolve('lodash')) + ');' +

0 commit comments

Comments
 (0)
Please sign in to comment.