Prebundle XyFlow for linked module development
This commit is contained in:
@@ -79,7 +79,10 @@ function govoplanInstalledModulesPlugin(): Plugin {
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [govoplanInstalledModulesPlugin(), react()],
|
plugins: [govoplanInstalledModulesPlugin(), react()],
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
exclude: availableWebModuleSpecifiers()
|
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"]
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
// Full-product builds include the host shell plus all installed module wiring.
|
// Full-product builds include the host shell plus all installed module wiring.
|
||||||
|
|||||||
Reference in New Issue
Block a user