Skip to content

fix(platform): lazy load YAML locator parser - #4696

Closed
yannickmonney wants to merge 1 commit into
mainfrom
fix/platform-lazy-yaml-locator
Closed

yannickmonney wants to merge 1 commit into
mainfrom
fix/platform-lazy-yaml-locator

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

The platform build guard rejected the current main merge-group candidate because the code-editor lazy closure reached 233 KB gzip, over the 230 KB budget. locate.ts was pulling the full yaml parser into the editor's static closure even though YAML pointer mapping is only needed after a YAML diagnostic is focused.

Keep the locator API synchronous after module initialization while loading the parser through a dynamic import. The production client build now reports a 204 KB gzip editor closure and passes the existing budget unchanged.

Validation:

  • bun --bun ../../packages/ui/bin/build-client.ts
  • bun scripts/check-entry-budget.ts dist
  • bunx vitest run packages/ui/src/components/forms/code-editor/locate.test.ts (16 passed)
  • bunx tsc --noEmit -p packages/ui/tsconfig.json

@yannickmonney
yannickmonney force-pushed the fix/platform-lazy-yaml-locator branch from d8e86ea to f4759d5 Compare October 10, 2026 11:28
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 10, 2026
@yannickmonney
yannickmonney removed this pull request from the merge queue due to a manual request Oct 10, 2026
@yannickmonney

Copy link
Copy Markdown
Contributor Author

Superseded by the atomic merge-queue candidate in #4691, which now contains the lazy YAML locator fix.

@yannickmonney
yannickmonney deleted the fix/platform-lazy-yaml-locator branch October 13, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant