Skip to content

fix(stream): compile Solid renderer with babel-preset-solid - #1309

Merged
antfu merged 2 commits into
shikijs:mainfrom
BetterAndBetterII:fix/stream-solid-jsx
Sep 11, 2026
Merged

antfu merged 2 commits into
shikijs:mainfrom
BetterAndBetterII:fix/stream-solid-jsx

Conversation

@BetterAndBetterII

Copy link
Copy Markdown
Contributor

Compile the Solid stream entry with babel-preset-solid so dist/solid.mjs does not emit React.createElement. Fixes #1285.

unbuild esbuild used the React JSX runtime for the Solid entry, so dist/solid.mjs emitted React.createElement and threw at runtime.

Fixes shikijs#1285
@netlify

netlify Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for shiki-next failed.

Name Link
🔨 Latest commit 290141a
🔍 Latest deploy log https://app.netlify.com/projects/shiki-next/deploys/6aa3507446557f00084e7c8a

@netlify

netlify Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for shiki-matsu failed.

Name Link
🔨 Latest commit 290141a
🔍 Latest deploy log https://app.netlify.com/projects/shiki-matsu/deploys/6aa35074e8888a0007cba963

@codecov

codecov Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.87%. Comparing base (02f0582) to head (290141a).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1309   +/-   ##
=======================================
  Coverage   89.87%   89.87%           
=======================================
  Files          81       81           
  Lines        3586     3586           
  Branches     1026     1026           
=======================================
  Hits         3223     3223           
  Misses        326      326           
  Partials       37       37           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@antfu
antfu merged commit 8724edd into shikijs:main Sep 11, 2026
8 of 13 checks passed
antfu added a commit to SHUBHI-KUMARI/shiki that referenced this pull request Oct 1, 2026
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.

@shikijs/stream/solid is published with React.createElement calls

2 participants