diff --git a/src/loader.js b/src/loader.js index 74620f5..94453a4 100644 --- a/src/loader.js +++ b/src/loader.js @@ -208,7 +208,7 @@ async function loader(content) { ABSOLUTE_URL_REGEX.test(this.resourcePath) && !WINDOWS_PATH_REGEX.test(this.resourcePath) ? this.resourcePath - : this.utils.contextify(this.rootContext, this.resourcePath); + : path.relative(this.rootContext, this.resourcePath); const minifyOptions = /** @type {import("./index").InternalWorkerOptions} */ ({