v8-compile-cache
v8-compile-cache copied to clipboard
Unable to use dynamic import() in cjs-files
Trying to use a dynamic import() statement will fail with:
TypeError [ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified.
The error originates from an insufficient options object passed to the new Script()-constructor node VM docs
/cc @zertosh
Sorry I don't have time to implement this. I will however review a carefully though out and thorough PR that implements this.