vite-plugin-solid
vite-plugin-solid copied to clipboard
Sourcemaps missing for *.ts-files
If I have some non-jsx-files in my project, say f.e. src/lib/auth.ts, vite complains with the following error (started with DEBUG="vite:sourcemap" set):
Sourcemap for "project/src/lib/auth.ts" points to missing source files
vite:sourcemap Missing sources:
vite:sourcemap project/src/lib/auth.tsx +1ms
If I rename the file to end with .tsx (instead of .ts), the error vanishes.
Similar issue for vite-plugin-react: https://github.com/vitejs/vite/issues/5438