chore(vite): prioritise .tsx/.ts over .js in resolve.extensions

Prevents stale compiled .js files from shadowing their .tsx sources
when the AI agent builds or type-checks the frontend.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-07 22:41:38 +02:00
parent a86bf2ded4
commit f14e58d42c
+1
View File
@@ -26,6 +26,7 @@ export default defineConfig({
__APP_GITSHA__: JSON.stringify(APP_GITSHA),
},
resolve: {
extensions: ['.tsx', '.ts', '.jsx', '.mjs', '.js', '.json'],
alias: {
'@': path.resolve(__dirname, './src'),
},