Summary
Browser bundling of @xlr-lib/xlr-sdk includes TypeScript runtime code, even though this layer should avoid shipping TS compiler/runtime in browser-targeted bundles.
Expected
Browser bundle excludes TypeScript runtime.
Actual
Bundle contains TS runtime markers:
/typescript/lib/typescript.js
getDefaultLibFileName
Compiler_option_0_of_value_1_is_unstable
Repro
- Checkout branch:
repro/lsp-bundles-typescript-xlr
- Run:
pnpm vitest sdk/src/__tests__/bundle-hygiene.test.ts
- Observe failing test due to TS runtime markers in browser bundle.
Repro branch