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:
@@ -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'),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user