Expected Behavior
works with modules that export a then() method
export function then() {}
Actual Behavior
crash
Proposed Fix
use indirection like a data URL to load the module namespace rather than directly when using import() : https://github.com/DataDog/import-in-the-middle/blob/main/hook.mjs#L40
Expected Behavior
works with modules that export a
then()methodActual Behavior
crash
Proposed Fix
use indirection like a data URL to load the module namespace rather than directly when using
import(): https://github.com/DataDog/import-in-the-middle/blob/main/hook.mjs#L40