-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Support Jiti (unjs) #20607
Comments
Did some digging into it - what Jiti is doing is wrapping the provided code using
The problem is that after this wrapping, this function is evaluated directly and that causes the wrapper to miss some variables (everything after |
That's for floating the link @birkskyum, I will try to fix it (need to refresh my memory on the details of |
Ah, interesting. If possible, that does sound like the better approach, because I doubt people would adopt Deno for Nuxt development if the transformer solution made the dx slower. |
Thanks for following up on this @bartlomieju @birkskyum ❤️ Please let me know if could help on this (i am reachable via |
@littledivy , just tried this with the latest canary (fad12b7). I still see the same error:
|
Implement contextified objects in `node:vm` Fixes denoland#23186 Fixes denoland#22395 Fixes denoland#20607 Fixes denoland#18299 Fixes denoland#19395 Fixes denoland#18315 Fixes denoland#18319 Fixes denoland#23183
I was curious to see if BYONM helped here, so I tried running this with latest deno 1.45.5 and |
This appear to work with the deno 2.0.0-rc.2+aaf2bf4 |
Right before jiti v2 release, we will use a fast path for Deno (similar to Bun), still impressive how Deno Node.js compatibility had been improved. ❤️ |
Jiti - GitHub
Platform
Darwin 22.6.0 arm64 arm
Version
deno 1.37.0
Repro
Expected
This output:
Actual
Additional info
This works if importing
node:console
The text was updated successfully, but these errors were encountered: