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 17b6f19 commit 7587754Copy full SHA for 7587754
lib/loader.js
@@ -24,7 +24,7 @@ module.exports = function (source) {
24
// The following part renders the tempalte with lodash as aminimalistic loader
25
//
26
// Get templating options
27
- const options = loaderUtils.parseQuery(this.query);
+ const options = this.query !== '' ? loaderUtils.parseQuery(this.query) : {};
28
// Webpack 2 does not allow with() statements, which lodash templates use to unwrap
29
// the parameters passed to the compiled template inside the scope. We therefore
30
// need to unwrap them ourselves here. This is essentially what lodash does internally
0 commit comments