rollup-plugin-off-main-thread icon indicating copy to clipboard operation
rollup-plugin-off-main-thread copied to clipboard

data url option

Open girving opened this issue 5 years ago • 3 comments

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.

girving avatar Mar 14 '20 22:03 girving

https://github.com/darionco/rollup-plugin-web-worker-loader

:D

darionco avatar Apr 28 '20 16:04 darionco

@darionco I also tried yours. I forget why it didn't work.

girving avatar May 07 '20 20:05 girving

I don’t quite follow. There is an official Data URL plugin. Does that not work for you?

surma avatar Apr 26 '21 10:04 surma