Fix: Resolve vite config error

The commit fixes a `ReferenceError: componentTagger is not defined` error in `vite.config.ts` by removing the undefined `componentTagger()` call. This resolves the issue preventing the Vite development server from starting.
This commit is contained in:
gpt-engineer-app[bot]
2025-05-28 04:15:47 +00:00
parent e496898e64
commit 6574cdb496
2 changed files with 5 additions and 8 deletions
+4 -7
View File
@@ -1,21 +1,18 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import path from "path";
// https://vitejs.dev/config/
export default defineConfig(({ mode }) => ({
export default defineConfig({
server: {
host: "::",
port: 8080,
},
plugins: [
react(),
mode === 'development' &&
componentTagger(),
].filter(Boolean),
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
}));
});