Skip to content

handle then() exports #6

@bmeck

Description

@bmeck

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions