diff --git a/src/extractLoader.js b/src/extractLoader.js index fa22db2..3987c1c 100644 --- a/src/extractLoader.js +++ b/src/extractLoader.js @@ -36,7 +36,7 @@ function extractLoader(content) { }); const sandbox = { require: (resourcePath) => { - const absPath = path.resolve(path.dirname(this.resourcePath), resourcePath); + const absPath = path.resolve(path.dirname(this.resourcePath), resourcePath).split("?")[0]; // Mark the file as dependency so webpack's watcher is working this.addDependency(absPath);