Configure Vite to prefer TypeScript source files
This commit is contained in:
@@ -3,6 +3,10 @@ import react from "@vitejs/plugin-react";
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
|
resolve: {
|
||||||
|
// Prefer TypeScript source over compiled JS mirrors when both exist
|
||||||
|
extensions: [".mjs", ".mts", ".ts", ".tsx", ".jsx", ".js", ".json"]
|
||||||
|
},
|
||||||
server: {
|
server: {
|
||||||
host: "0.0.0.0",
|
host: "0.0.0.0",
|
||||||
port: 5173
|
port: 5173
|
||||||
|
|||||||
Reference in New Issue
Block a user