unenv: Should we avoid importing from node:...
from internal modules?
#322
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. |
Beta Was this translation helpful? Give feedback.
-
(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. |
Beta Was this translation helpful? Give feedback.
-
Consider
unenv/src/runtime/node/timers/internal/scheduler.ts
Lines 1 to 3 in e8ea22f
I feel like this code should actually be:
Beta Was this translation helpful? Give feedback.
All reactions