use variable for __resourceQuery
This commit is contained in:
parent
2183f05db8
commit
c88bce3b08
|
@ -32,7 +32,7 @@ ConstPlugin.prototype.apply = function(compiler) {
|
|||
});
|
||||
compiler.parser.plugin("expression __resourceQuery", function(expr) {
|
||||
if(!this.state.module) return;
|
||||
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]));
|
||||
return true;
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue