-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work in Bun #2
Comments
Thanks for the detailed report! Fix published in v0.4.1. |
This still doesn't work in bun. New error (when running Astro with command
|
@CrossScarDev I can't repro, and that error message you highlighted last appeared in Oniguruma-To-ES v0.1.2. Please upgrade to the latest version of this library (or of Shiki, if that's where you're using it). Alternatively, upgrading to the latest version of Bun should also fix it. |
oniguruma-to-es/src/generate.js
Line 453 in 964fa4b
oniguruma-to-es/src/transform.js
Line 321 in 964fa4b
These 2 line, specifically where it uses
\x
with raw string template, makesoniguruma-to-es
incompatible with Bun, due to this issue oven-sh/bun#7540 on Bun's side.Although this is Bun's fault, as
oniguruma-to-es
works well in latest Node.js, it would be great if this is fixed inoniguruma-to-es
since it would takes a while to get fixed in their side.A simple fix would be using double backslash as a escape character instead of using
String.raw
in those 2 lines, when it comes to use\x
andString.raw
together.The text was updated successfully, but these errors were encountered: