Skip to content

fix: follow handled dynamic imports in the export audit - #4264

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4250
Oct 26, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4250

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The export audit reported five module-local helpers and one real reader it could not follow. Keep the helpers private, and teach the audit to follow a dynamic import's fulfilled namespace through catch and finally. This preserves resolvePlace, which Page diagnostics uses to reveal a captured location, instead of removing a working navigation path.

The timeline helpers came from #3973; #4198 added the diagnostics reader through import(...).catch(...). Their intended behavior stays intact. Rebuilding changes only two source hashes in the kernel manifest; compiled runtime and package bundles are byte-identical.

Verified locally: the original six-export failure reproduces on main and passes after this change; a focused checker regression fails before the fix and passes afterward, including an unread-export control. All 668 runtime tests, the diagnostics captured-location browser test, and the browser build/type checks pass.

Closes #4250 — automated triage

Keep five module-local helpers private. Preserve diagnostics location navigation by following the fulfilled import namespace through catch and finally rather than treating promise methods as exports. The checker regression distinguishes the used export from an unread neighbor.

Closes #4250
@leaf-agent
leaf-agent merged commit 265f25b into main Oct 26, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4250 branch October 26, 2026 15:17
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.

Unused export check reports six unread JavaScript exports

1 participant