From 84c8562a32bc4442bb5c2ef5035303234395a26e Mon Sep 17 00:00:00 2001 From: Brandon Roberts Date: Sun, 18 Sep 2016 00:09:55 -0500 Subject: [PATCH] fix(loader): Fixed bug with sync loading filename --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 2a8c8a7..1a29057 100644 --- a/src/index.js +++ b/src/index.js @@ -31,7 +31,7 @@ module.exports = function(source, sourcemap) { var sync = !!loadStringQuery.sync; // get the module path string - var pathString = hasQuery ? loadString.substr(0, (queryIndex - 1)) : loadString; + var pathString = hasQuery ? loadString.substr(0, queryIndex) : loadString; // split the string on the delimiter var parts = pathString.split(delimiter);