feat: consolidate shared UI and harden browser authority for release
This commit is contained in:
+17
-3
@@ -202,12 +202,26 @@ function govoplanInstalledModulesPlugin(): Plugin {
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
// The conformance harness shares node_modules, but must never replace the
|
||||
// live application's optimized dependencies while browser checks run.
|
||||
cacheDir: join(webuiRoot, "node_modules/.vite/govoplan-app"),
|
||||
plugins: [govoplanInstalledModulesPlugin(), react()],
|
||||
optimizeDeps: {
|
||||
exclude: availableWebModuleSpecifiers(),
|
||||
// Dataflow is discovered through the virtual module registry, so Vite's
|
||||
// initial scan cannot see this CommonJS-backed transitive dependency.
|
||||
include: ["@xyflow/react"]
|
||||
// The virtual module registry and deferred editors hide these imports from
|
||||
// Vite's initial scan. Prebundle their exact vendor entry points up front:
|
||||
// discovering them on the first Campaign/editor visit would otherwise
|
||||
// invalidate active module requests and force a full-page reload.
|
||||
// Module packages remain excluded above, preserving optional/lazy routes.
|
||||
include: [
|
||||
"@xyflow/react",
|
||||
"read-excel-file/browser",
|
||||
"read-excel-file/universal",
|
||||
"@tiptap/core",
|
||||
"@tiptap/extension-image",
|
||||
"@tiptap/react",
|
||||
"@tiptap/starter-kit"
|
||||
]
|
||||
},
|
||||
build: {
|
||||
manifest: true,
|
||||
|
||||
Reference in New Issue
Block a user