Skip to content

feat(compiler): v5 browser build - #6852

Merged
johnjenkins merged 3 commits into
v5from
feat-v5-browser-build
Aug 27, 2026
Merged

feat(compiler): v5 browser build#6852
johnjenkins merged 3 commits into
v5from
feat-v5-browser-build

Conversation

@johnjenkins

@johnjenkins johnjenkins commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What is the current behavior?

GitHub Issue Number: N/A

What is the new behavior?

Add @stencil/core/compiler/browser entry.

Exposes transpile / transpileSync / createSystem / scopeCss / ts for in-browser use.

Consuming this in a bundler needs Node-builtin polyfills / alias' configured for:

  • path (actually used)
  • os (actually used)
  • process (actually used)
  • buffer (actually used)
  • fs (no-op)
  • crypto (no-op)
  • util (no-op)
  • url (no-op)

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

Other information

…rowser)

Exposes transpile/transpileSync/createSystem/scopeCss for in-browser use,
built as a separate tsdown entry aliased to browser-safe stand-ins for
Node-only deps (fs watcher, chalk, worker threads, on-disk resolve,
lightningcss/browserslist). Includes two defensive guards for `ts.sys`
being a non-configurable getter on modern typescript builds outside Node.
@johnjenkins
johnjenkins requested a review from a team as a code owner August 27, 2026 14:44
@codspeed-hq

codspeed-hq Bot commented Aug 27, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 2 untouched benchmarks


Comparing feat-v5-browser-build (6b53766) with v5 (1cec65d)

Open in CodSpeed

@github-actions

Copy link
Copy Markdown
Contributor

Runtime Benchmark

  • 9 untouched benchmarks
  • 0 improved benchmarks
  • 0 regressed benchmarks

@johnjenkins
johnjenkins merged commit 09031cd into v5 Aug 27, 2026
34 checks passed
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