unenv: Should we avoid importing from node:... from internal modules?
#322
petebacondarwin
started this conversation in
General
Replies: 2 comments 2 replies
|
Once we are inside an internal file, I think we should stay there and not pop back out to the polyfilling system. This is a blocker I hit when trying to implement node.js compat in the Cloudflare Vite Dev server plugin. |
0 replies
|
(moved to unenv discussions) The main reason for this switch was the starting of hybrid polyfill support.
I guess if vite is supporting aliases, it should properly resolve no? We do have it both for Nuxt vite builder behind a flag and Nitro rollup builder. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Consider
unenv/src/runtime/node/timers/internal/scheduler.ts
Lines 1 to 3 in e8ea22f
I feel like this code should actually be:
All reactions