perf(app): deduplicate and budget browser bundles - #59
Merged
melonamin merged 2 commits intoAug 12, 2026
Conversation
melonamin
marked this pull request as ready for review
August 12, 2026 12:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
packages/core/wasmthe canonical browser WASM source and remove the legacyapp/public/wasmmirrorWhy
Vite already emitted the package-owned WASM imported through
@pondpilot/flowscope-core, while the Rust build also copied the same binary intoapp/public. Production and embedded CLI builds therefore shipped two roughly 8.9 MB WASM files. Optional heavyweight browser features were also reachable from the startup graph, producing a roughly 6.7 MB entry chunk, and the build only warned instead of enforcing a regression limit.Impact
Direct dev/build commands clean stale legacy mirrors before Vite starts. CLI serve embeds the same budget-checked app output, npm/browser package loading still resolves the package-owned module, and the VS Code extension keeps its separate Node-target WASM path.
Validation
just build-wasmyarn workspace @pondpilot/flowscope-app test(349 tests)yarn workspace @pondpilot/flowscope-app buildyarn workspace @pondpilot/flowscope-app check:bundlejust build-cli-serveyarn workspaces run typecheckyarn workspaces run lintgit diff --checkcodex review --uncommitted; fixed all valid findings, final pass found no actionable defects