Fix: Add chromium-bidi dependency and externalize Playwright to resolve module loading errors

This commit is contained in:
Misaka
2026-03-04 20:04:48 +08:00
parent fed76b4fe0
commit 9939201ca1
4 changed files with 69 additions and 12 deletions

View File

@@ -4,7 +4,13 @@ import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
main: {},
main: {
build: {
rollupOptions: {
external: ['playwright', 'playwright-core']
}
}
},
preload: {},
renderer: {
resolve: {