Skip to content

Commit 84c8562

Browse files
fix(loader): Fixed bug with sync loading filename
1 parent 86be05c commit 84c8562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = function(source, sourcemap) {
3131
var sync = !!loadStringQuery.sync;
3232

3333
// get the module path string
34-
var pathString = hasQuery ? loadString.substr(0, (queryIndex - 1)) : loadString;
34+
var pathString = hasQuery ? loadString.substr(0, queryIndex) : loadString;
3535

3636
// split the string on the delimiter
3737
var parts = pathString.split(delimiter);

0 commit comments

Comments
 (0)