Configure Vite to prefer TypeScript source files

This commit is contained in:
2026-04-06 09:06:06 +02:00
parent dc9daf0ce2
commit 18f69a7d20

View File

@@ -2,6 +2,10 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
resolve: {
// Prefer TypeScript source over compiled JS mirrors when both exist
extensions: [".mjs", ".mts", ".ts", ".tsx", ".jsx", ".js", ".json"]
},
server: {
host: "0.0.0.0",
port: 5173