darionco / rollup-plugin-web-worker-loader

Rollup plugin to load Workers. Supports inlining, dependencies, source maps, NodeJS and browsers.
MIT License
112 stars 30 forks source link

Breaking rollup-plugin-css-only plugin #60

Open aurmartin opened 2 years ago

aurmartin commented 2 years ago

Expected Behavior

rollup-plugin-web-worker-loader shouldn't break the rollup-plugin-css-only plugin.

Actual Behavior

With my config, when I enable the rollup-plugin-web-worker-loader and I have at least one web worker, my rollup-plugin-css-only does not output anything.

How to reproduce

You can run npm install && npm run build, there will be no bundle.css generated in public/build. If you disable the rollup-plugin-web-worker-loader in rollup.config.js and build again, there will be a bundle.css.