using vite for static bundling to solve external package's react resolution

This commit is contained in:
dswbx
2025-01-14 07:51:14 +01:00
parent b1a32f3705
commit 6855e6f7e9
10 changed files with 153 additions and 456 deletions

View File

@@ -25,5 +25,12 @@ export default defineConfig({
...devServerConfig,
entry: "./vite.dev.ts"
})
]
],
build: {
manifest: true,
outDir: "./dist/static",
rollupOptions: {
input: "./src/ui/main.tsx"
}
}
});