Open bmeck opened 2 years ago
works with modules that export a then() method
then()
export function then() {}
crash
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
import()
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