fix: build

This commit is contained in:
reya
2024-07-19 09:28:03 +07:00
parent 8fcf3551d8
commit dcf2791fe5
3 changed files with 1 additions and 48 deletions

View File

@@ -55,7 +55,6 @@
"tailwindcss": "^3.4.6",
"typescript": "^5.5.3",
"vite": "^5.3.4",
"vite-plugin-top-level-await": "^1.4.1",
"vite-tsconfig-paths": "^4.3.2"
}
}

View File

@@ -1,19 +1,10 @@
import { TanStackRouterVite } from "@tanstack/router-vite-plugin";
import react from "@vitejs/plugin-react-swc";
import { defineConfig } from "vite";
import topLevelAwait from "vite-plugin-top-level-await";
import viteTsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
plugins: [
react(),
viteTsconfigPaths(),
topLevelAwait({
promiseExportName: "__tla",
promiseImportName: (i) => `__tla_${i}`,
}),
TanStackRouterVite(),
],
plugins: [react(), viteTsconfigPaths(), TanStackRouterVite()],
build: {
outDir: "../../dist",
},