Hacker News new | ask | show | jobs
by steve_taylor 1452 days ago
Last year, I converted a CRA to Vite because CRA wouldn't work in a monorepo. It was such a painless experience and it just worked.
1 comments

Yep, same! I will say, getting everything playing nicely in terms of TypeScript, ESM, CJS, etc. was a bit challenging on the first go around, but isn’t the fault of Vite (at least not entirely).

As an example, if you’re used to CRA being setup for you to handle things like images/fonts, you’ll probably need a loader (same as webpack). Then you might need type definitions for the loader, the file format (e.g., SVGs), etc.

After getting past the initial configuration hump it’s not bad and pretty painless to start a new project.

I just don’t want to mislead people into thinking it’s entirely painless.