We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2183f05 commit c88bce3Copy full SHA for c88bce3
lib/ConstPlugin.js
@@ -32,7 +32,7 @@ ConstPlugin.prototype.apply = function(compiler) {
32
});
33
compiler.parser.plugin("expression __resourceQuery", function(expr) {
34
if(!this.state.module) return;
35
- this.state.current.addDependency(new ConstDependency(JSON.stringify(this.state.module.splitQuery(this.state.module.resource)[1]), expr.range));
+ this.state.current.addVariable("__resourceQuery", JSON.stringify(this.state.module.splitQuery(this.state.module.resource)[1]));
36
return true;
37
38
};
0 commit comments