Closed pi0 closed 2 weeks ago
Followup https://github.com/unjs/unenv/pull/226/
Although less secure, we could maximize runtime compatibility by emulating node:vm using eval or dynamic imports (if allowed)
node:vm
eval
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)
Followup https://github.com/unjs/unenv/pull/226/
Although less secure, we could maximize runtime compatibility by emulating
node:vm
usingeval
or dynamic imports (if allowed)Use-case: It would allow libs like jiti run within worker and browser contexts (however not ideal, but work!)