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:
@@ -113,7 +113,7 @@ export const useSupabaseEmployeeData = () => {
|
||||
}
|
||||
};
|
||||
|
||||
// Process transactions for an employee
|
||||
// Process transactions for an employee with proper clearing logic
|
||||
const processTransactions = (employeeTransactions: Transaction[]): ProcessedTransaction[] => {
|
||||
let runningBalance = 0;
|
||||
|
||||
|
||||
+4
-7
@@ -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"),
|
||||
},
|
||||
},
|
||||
}));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user