pmndrs / use-cannon

👋💣 physics based hooks for @react-three/fiber
https://cannon.pmnd.rs
2.78k stars 156 forks source link

disable source maps in production build #167

Closed jeetiss closed 3 years ago

jeetiss commented 3 years ago

rollup-plugin-web-worker-loader generates source maps on default for worker code https://github.com/darionco/rollup-plugin-web-worker-loader/pull/45

and source maps dramatically increase package size

size with sourcemaps — 914K
size without         — 164K

so I disable them in production and enable for debug bundle

stockhuman commented 3 years ago

Thanks for notifying us. :)