Skip to content

ref(build): Switch TypeScript moduleResolution to bundler#21559

Open
logaretm wants to merge 1 commit into
developfrom
awad/ts-module-resolution-bundler
Open

ref(build): Switch TypeScript moduleResolution to bundler#21559
logaretm wants to merge 1 commit into
developfrom
awad/ts-module-resolution-bundler

Conversation

@logaretm

@logaretm logaretm commented Jun 15, 2026

Copy link
Copy Markdown
Member

Changes our module resolution strategy from node which is deprecated in next releases to bundler which better reflects our own setup.

Some changes were required for svelte SDK because it imported non-exportable types, I opted to vendor them instead. Also one minor exception is introduced for TypeScript 3.8 because it does not support bundler module resolution strategy.

replaces #21520

Changes the shared base tsconfig from `moduleResolution: "node"` to
`"bundler"` (supported since TS 5.0, no TypeScript upgrade required).
`bundler` resolution respects package `exports` maps, so deep imports
into non-exported subpaths no longer resolve.

- Replace the deep `svelte/types/compiler*` type imports with
  `svelte/compiler` and a small set of vendored preprocessor types.
- Inline `@sentry/angular`'s `tsconfig.ngc.json` so it no longer extends
  the shared base config — ng-packagr ships an older TypeScript that
  rejects `"moduleResolution": "bundler"` when parsing the extends chain.
- Downgrade `bundler` back to `node` in the TS 3.8 compat scripts, since
  TS 3.8 predates the `bundler` option.
@logaretm logaretm marked this pull request as ready for review June 15, 2026 19:31
@logaretm logaretm requested review from a team as code owners June 15, 2026 19:31
@logaretm logaretm requested review from JPeer264, mydea, nicohrubec and s1gr1d and removed request for a team June 15, 2026 19:31
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