effect-js
effect-js copied to clipboard
Reduce size of the webpack build
Currently, the webpack build comes out to 2.xx MB. That is far too big to be used when it is loaded in a frontend.
Some suggestions where to start are: See how the webpack build configuration can be adjusted. See how the imports can be adjusted to reduce the size. See if implementing terser in the webpack build is useful. There are probably other ways to do this, but I would start with these.
As a last resort, it might be worthwhile to use some other build tool, such as roll-up.