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[] => {
|
const processTransactions = (employeeTransactions: Transaction[]): ProcessedTransaction[] => {
|
||||||
let runningBalance = 0;
|
let runningBalance = 0;
|
||||||
|
|
||||||
|
|||||||
+4
-7
@@ -1,21 +1,18 @@
|
|||||||
|
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import react from "@vitejs/plugin-react-swc";
|
import react from "@vitejs/plugin-react-swc";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig(({ mode }) => ({
|
export default defineConfig({
|
||||||
server: {
|
server: {
|
||||||
host: "::",
|
host: "::",
|
||||||
port: 8080,
|
port: 8080,
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [react()],
|
||||||
react(),
|
|
||||||
mode === 'development' &&
|
|
||||||
componentTagger(),
|
|
||||||
].filter(Boolean),
|
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
"@": path.resolve(__dirname, "./src"),
|
"@": path.resolve(__dirname, "./src"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}));
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user