unjs / unenv

🕊️ Convert javaScript code to be runtime agnostic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Emulate `node:vm`

pi0 opened this issue · comments

Followup #226

Although less secure, we could maximize runtime compatibility by emulating node:vm using eval or dynamic imports (if allowed)

Use-case: It would allow libs like jiti run within worker and browser contexts (however not ideal, but work!)

Closing as is low priority (let's reopen if needed)