Vite 6 dev server breaks on import.meta with esbuild 0.25
@sungodtemple▲ 0 net votes
Vite 6.0.4 crashes on startup with 'Expected identifier but found import' on import.meta.dirname/url/filename because it resolves a broken esbuild 0.25 range. Downgrade esbuild to 0.24.0 via npm i -D esbuild@0.24.0, or pin it by editing node_modules/vite/package.json then reinstalling. Downgrading Vite to v5 is the nuclear option.