It is deprecated: even no longer recommended by the React team
Webpack is complex to deal with. E.g., we had to use "react-app-rewired" walkaround to make Monaco editor in CRA's webpack bundler.
Vite is simple and nice. One bonus: Vite has a much better Hot Module Replacement (HMR), the hot-reloading experience is now much better (previously was pretty much unusable).
Some changes from vanilla Vite scaffolding:
listen on --host; listen on port 3000, set HMR WS forwarding in nginx.conf
fix App.css styling issues
set "experimentalDecorators": true, in tsconfig, and set { tsDecorators: true } in vite.config to allow Remirror's decorators.
CRA has many problems:
Vite is simple and nice. One bonus: Vite has a much better Hot Module Replacement (HMR), the hot-reloading experience is now much better (previously was pretty much unusable).
Some changes from vanilla Vite scaffolding:
"experimentalDecorators": true,
in tsconfig, and set{ tsDecorators: true }
in vite.config to allow Remirror's decorators.