Skip to content

Commit c88bce3

Browse files
committed
use variable for __resourceQuery
1 parent 2183f05 commit c88bce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ConstPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ConstPlugin.prototype.apply = function(compiler) {
3232
});
3333
compiler.parser.plugin("expression __resourceQuery", function(expr) {
3434
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));
35+
this.state.current.addVariable("__resourceQuery", JSON.stringify(this.state.module.splitQuery(this.state.module.resource)[1]));
3636
return true;
3737
});
3838
};

0 commit comments

Comments
 (0)