This pull request closes #431, by using ESM by default in new installations, and automatically creating vite.config.mts (instead of vite.config.ts) when installing Vite Ruby in a CJS project.
Also linked to Vite's troubleshooting guide in case users run into this while upgrading an older project.
Description 📖
This pull request closes #431, by using ESM by default in new installations, and automatically creating
vite.config.mts
(instead ofvite.config.ts
) when installing Vite Ruby in a CJS project.Also linked to Vite's troubleshooting guide in case users run into this while upgrading an older project.
Background 📜
These changes were discussed in:
431