You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, once I try to call the function that spawns the worker in another Rsbuild powered React site, it turns out that the site is trying to load the worker via file:/// URL. Such URL does not exist in the original library artifact.
Version
Details
I have an Rslib powered library that can spawn a Web Worker: https://github.com/wudevstac/csv-js
The result bundle of that library seems to be pretty normal, where the worker file is separated and is referenced via import.meta.url:
https://github.com/wudevstac/csv-js/blob/91ca6586c0e4ea3cdf38ceeca098467d2f38db95/src/parserWorker.ts
However, once I try to call the function that spawns the worker in another Rsbuild powered React site, it turns out that the site is trying to load the worker via
file:///
URL. Such URL does not exist in the original library artifact.Reproduce link
https://codesandbox.io/p/github/rspack-contrib/rsbuild-codesandbox-example/csb-hphzc5/draft/zealous-bush
Reproduce Steps
The text was updated successfully, but these errors were encountered: