Skip to content

Browser bundle includes TypeScript runtime in validation/LSP path #7

@shahabdsh

Description

@shahabdsh

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

  1. Checkout branch: repro/lsp-bundles-typescript-xlr
  2. Run:
    pnpm vitest sdk/src/__tests__/bundle-hygiene.test.ts
  3. Observe failing test due to TS runtime markers in browser bundle.

Repro branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions