$ the-wire · showcase
create-vue fixes Vitest config imports for Vite's native loader
By RepoJournal · Filed · About Vue.js · Composed from the cited sources · methodology
create-vue now emits explicit file extensions on the Vite config import in generated Vitest configs, closing a warning and a hard failure for projects running Vite's native config loader.
fix: add extension to Vitest config import vuejs/create-vue
Generated Vitest configs imported the Vite config without a file extension, which Vite's current loader tolerates but the native loader rejects, so freshly scaffolded projects warned and broke under configLoader: 'native'. The generator now writes ./vite.config.ts imports for TypeScript projects, which matches what the native loader expects.
fix: add extension to Vitest config import (#1126) vuejs/create-vue
The change landed on main as "fix: add extension to Vitest config import" in vuejs/create-vue, authored by Cédric Exbrayat, so projects scaffolded from the current generator get the extension by default. Existing projects, or those that pulled the fix before the change, can add the extension to their own Vitest config import by hand.