Skip to content

Fix compatiblity with Cloudflare - #463

Draft
matthewp wants to merge 2 commits into
expressive-code:mainfrom
withastro:fix/cloudflare-runtime-compatibility
Draft

Fix compatiblity with Cloudflare#463
matthewp wants to merge 2 commits into
expressive-code:mainfrom
withastro:fix/cloudflare-runtime-compatibility

Conversation

@matthewp

@matthewp matthewp commented Aug 11, 2026

Copy link
Copy Markdown

This fixes Cloudflare compat, can fully use this libary in dev mode with Workerd.

High-level, the fix works because:

  • Uses Shiki’s workerd-compatible Oniguruma WASM entrypoint.
  • Replaces PostCSS/PostCSS Nested with @eslint/css-tree. This is hte biggest change and accounts for most of the diff.
  • Bundle hast-util-select into core so the CommonJS version doesn't need to be optimized.

Fixes #439

@netlify

netlify Bot commented Aug 11, 2026

Copy link
Copy Markdown

Deploy Preview for expressive-code ready!

Name Link
🔨 Latest commit f2aa1bb
🔍 Latest deploy log https://app.netlify.com/projects/expressive-code/deploys/6a7b86d784e99a0008b055e6
😎 Deploy Preview https://deploy-preview-463--expressive-code.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@matthewp
matthewp marked this pull request as draft August 13, 2026 13:49
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.

Astro v6 with cloudflare adapter does not work with <Code/> component

1 participant