chore: cleanup demo config (#28)

This commit is contained in:
Rahim
2025-09-26 12:07:57 +10:00
committed by GitHub
parent 1ef66c9461
commit d481b477db
5 changed files with 18 additions and 33 deletions
+1 -6
View File
@@ -1,12 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@vjs/html": ["../../packages/html/src"],
"@vjs/react": ["../../packages/react/src"],
"@vjs/core": ["../../packages/core/src"]
}
"baseUrl": "."
},
"include": ["src"]
}
-13
View File
@@ -1,13 +0,0 @@
import { fileURLToPath } from 'url';
import { defineConfig } from 'vite';
const __dirname = fileURLToPath(new URL('.', import.meta.url));
export default defineConfig({
root: __dirname,
server: {
port: 5174,
strictPort: false, // Allow Vite to try other ports if 5174 is taken
},
});
+11
View File
@@ -0,0 +1,11 @@
import { defineConfig } from 'vite';
// https://vitejs.dev/config
export default defineConfig({
server: {
port: 5174,
},
optimizeDeps: {
exclude: ['@vjs/html'],
},
});
+1 -5
View File
@@ -3,11 +3,7 @@
"compilerOptions": {
"baseUrl": ".",
"jsx": "react-jsx",
"paths": {
"@vjs/react": ["../../packages/react/src"],
"@vjs/html": ["../../packages/html/src"],
"@vjs/core": ["../../packages/core/src"]
}
"jsxImportSource": "react"
},
"include": ["src"]
}
+5 -9
View File
@@ -1,19 +1,15 @@
import type { UserConfig } from 'vite';
import { defineConfig } from 'vite';
import tailwindcss from '@tailwindcss/vite';
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default {
// https://vitejs.dev/config
export default defineConfig({
plugins: [react(), tailwindcss()],
server: {
host: '0.0.0.0', // Listen on any interface
port: 5173,
watch: {
ignored: [],
},
},
optimizeDeps: {
exclude: ['@vjs/react'], // Dont prebundle, keeps rebuilds fast.
exclude: ['@vjs/react'],
},
} satisfies UserConfig;
});