denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
97.02k stars 5.36k forks source link

npm:isolated-vm is not supported #25130

Open franz101 opened 2 months ago

franz101 commented 2 months ago

Version: Deno x.x.x

npm:isolated-vm

Is the alternative to launch an isolate with: new Worker?

// Create a new isolate limited to 128MB
import ivm from 'npm:isolated-vm';
const isolate = new ivm.Isolate({ memoryLimit: 128 });

raises error: Uncaught (in promise) Error: Cannot find module './out/isolated_vm' Require stack:

What is the best way to run a child that does not crash the main thread?

littledivy commented 2 months ago

This needs post-install scripts. Tracking issue: #16164