transitive-bullshit / create-react-library

CLI for creating reusable react libraries.
https://transitivebullsh.it/javascript-dev-tools-in-2022
4.78k stars 299 forks source link

build with --no-compress; why? is it intentional? #238

Open kerematam opened 4 years ago

kerematam commented 4 years ago

Well, i am not that guru on bundling; is it intentional to pass --no-compress flag to build script on package.json? because it dramatically changes package size.

transitive-bullshit commented 4 years ago

Hey Katam,

Yes it is intentional.

The idea is that you'd much rather have library code that's debuggable via third-party apps, and those apps will 99% of the time be using a bundler that compresses the whole bundle for you like CRA, next.js, webpack, parcel, etc.

Keep in mind that the uncompressed script size on disk of your NPM module is still the single most important factor w.r.t. the uncompressed amount of JS that the browser's JS interpreter eventually needs to load and parse.

kerematam commented 4 years ago

Thanks for the answer, also it is good to see that this repo is back and maintained again with sponsor.

transitive-bullshit commented 4 years ago

Thanks! Yeah, well the sponsor is my own bootstrapped company, so we could definitely still use help if you're interested 😄

kerematam commented 4 years ago

I was thinking poor open source developers finally found some source of income:D

I can support but i dont think i can be the "active" maintainer. Let me know if contributors have any discussion platform beside git issues.