jaredpalmer / tsdx

Zero-config CLI for TypeScript package development
https://tsdx.io
MIT License
11.21k stars 505 forks source link

Drop in replacement for react-scripts #1047

Closed vviikk closed 2 years ago

vviikk commented 3 years ago

Current Behavior

Doesn't build a create-react-app project

Desired Behavior

Our build times are now insanely slow with Create React App (react-scripts). But we don't want to eject. Anyway of using this instead of something like craco, which comes with it's own caveats.

aarjithn commented 3 years ago

I doubt whether tsdx would be any faster for your usecase. Also, tsdx is kindof more suited for a library and react-scripts for web applications.

Maybe you can take look at esbuild

agilgur5 commented 2 years ago

Thanks for answering @aarjithn

Also, tsdx is kindof more suited for a library and react-scripts for web applications.

Yes TSDX is meant for library authors, so those are different audiences and different feature sets.

I doubt whether tsdx would be any faster for your usecase.

And yes, TSDX builds your library multiple times in different ways for different consumers, so it will almost certainly be intentionally slower. Again, different audiences.

Maybe you can take look at esbuild

Good suggestion! esbuild's core feature is performance. swc is another option too.