This was generated by AI during triage.
Parent
- Roadmap plan:
docs/plans/2026-06-22-rust-native-typescript-module-resolution-roadmap.md
- Package map condition plan:
docs/plans/2026-06-22-rust-native-package-map-condition-set-completion.md
- Roadmap node:
1-4-3. condition set handling for repo-local source
What to build
Use reliable Rust-extracted import reference information to distinguish ESM import/export-from from CommonJS require() when selecting repo-local package map conditions. ESM import/export-from should use the import runtime condition. CommonJS require() should use the require runtime condition. Unknown import kinds should default to import and remain explainable in diagnostics.
This issue should not become a broad extractor rewrite. It should use existing extractable reference shape where reliable and avoid guessing for ambiguous shapes.
Acceptance criteria
Blocked by
Parent
docs/plans/2026-06-22-rust-native-typescript-module-resolution-roadmap.mddocs/plans/2026-06-22-rust-native-package-map-condition-set-completion.md1-4-3. condition set handling for repo-local sourceWhat to build
Use reliable Rust-extracted import reference information to distinguish ESM import/export-from from CommonJS
require()when selecting repo-local package map conditions. ESM import/export-from should use theimportruntime condition. CommonJSrequire()should use therequireruntime condition. Unknown import kinds should default toimportand remain explainable in diagnostics.This issue should not become a broad extractor rewrite. It should use existing extractable reference shape where reliable and avoid guessing for ambiguous shapes.
Acceptance criteria
importruntime condition.require()package map references select therequireruntime condition where the Rust extraction path can reliably identify them.importand remain visible/explainable in diagnostics.exports/imports, patterns, nested conditions, and customConditions behavior remains intact.Blocked by