Skip to content

fix(test): resolve symlinked ts package subpaths#41374

Open
mturac wants to merge 1 commit into
microsoft:mainfrom
mturac:fix/issue-41371-sync-loader-ts-subpath
Open

fix(test): resolve symlinked ts package subpaths#41374
mturac wants to merge 1 commit into
microsoft:mainfrom
mturac:fix/issue-41371-sync-loader-ts-subpath

Conversation

@mturac

@mturac mturac commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Closes #41371

Summary

  • resolve extensionless TypeScript package subpath imports for symlinked workspace packages without an exports map
  • preserve package exports handling by falling back to Node resolution when exports is present
  • add an ESM regression that creates pnpm-style workspace symlinks and verifies both raw .ts subpath resolution and exports precedence

Testing

  • npm run build
  • npm run ttest -- tests/playwright-test/esm.spec.ts -g "no-extension|workspace symlinks"
  • npm run ttest -- tests/playwright-test/resolver.spec.ts -g "exports without path mapping in ESM"
  • npm run eslint -- packages/playwright/src/transform/transform.ts tests/playwright-test/esm.spec.ts
  • npm run tsc -- --pretty false
  • git diff --check

@mturac mturac force-pushed the fix/issue-41371-sync-loader-ts-subpath branch from 9bf4254 to 606b698 Compare June 19, 2026 09:14
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.

[Regression]: Sync ESM loader (registerHooks) fails to resolve extensionless .ts subpath imports across pnpm workspace symlinks

1 participant