rollup-plugin-off-main-thread
rollup-plugin-off-main-thread copied to clipboard
data url option
Would it be possible to add an option to bundle the worker into the main module using a data url, to avoid a separate network request? I've tried to make this using a combination of omt and other plugins, and have failed to figure it out. Would be nice if omt did this out of the box.
https://github.com/darionco/rollup-plugin-web-worker-loader
:D
@darionco I also tried yours. I forget why it didn't work.
I don’t quite follow. There is an official Data URL plugin. Does that not work for you?