From c88bce3b0893f3cf841a8428c686f7a2a21b8b26 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Sun, 17 Feb 2013 10:30:47 +0100 Subject: [PATCH] use variable for __resourceQuery --- lib/ConstPlugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ConstPlugin.js b/lib/ConstPlugin.js index d0384adf4..cfb41657f 100644 --- a/lib/ConstPlugin.js +++ b/lib/ConstPlugin.js @@ -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; }); }; \ No newline at end of file