The underlying Node.js VM API that the edge runtime package uses doesn't support ESM/modules. There's a new VM API that does support modules, but it's not stable yet and currently behind an experimental flag.
Hoping that bundling for CJS in dev and ESM for deployment won't lead to unexpected issues; if it does we can revisit this and add additional documentation and/or options.
The underlying Node.js VM API that the edge runtime package uses doesn't support ESM/modules. There's a new VM API that does support modules, but it's not stable yet and currently behind an experimental flag.
Hoping that bundling for CJS in dev and ESM for deployment won't lead to unexpected issues; if it does we can revisit this and add additional documentation and/or options.