Open
Description
One thing that comes up in user feedback about the vm.Module
API is that it requires excessive boilerplate, as you can see in the example in the docs: https://nodejs.org/api/vm.html#class-vmmodule. I think that most users want a straightforward ESM equivalent to vm.Script
, without needing to define a context or a custom function for linking; the default should be to link modules as Node itself normally does. See also #43288 (comment).
Metadata
Metadata
Assignees
Labels
Issues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to experimental features.Issues that need assistance from volunteers or PRs that need help to proceed.Issues and PRs related to ES module loadersMark issue so that it is never considered staleIssues and PRs related to the vm subsystem.