lume/apps/desktop2/vite.config.ts

26 lines
575 B
TypeScript
Raw Normal View History

2024-02-11 02:30:18 +00:00
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}`,
}),
2024-02-12 02:08:35 +00:00
TanStackRouterVite(),
2024-02-11 02:30:18 +00:00
],
build: {
outDir: "../../dist",
},
server: {
strictPort: true,
port: 3000,
},
clearScreen: false,
});