Skip to content

Commit

Permalink
fix: crash when using filesystem cache
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 18, 2024
1 parent 4e26a1e commit e3c6e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>} */ ({
Expand Down

0 comments on commit e3c6e65

Please sign in to comment.