Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle then() exports #6

Open
bmeck opened this issue Dec 2, 2021 · 0 comments
Open

handle then() exports #6

bmeck opened this issue Dec 2, 2021 · 0 comments

Comments

@bmeck
Copy link
Member

bmeck commented Dec 2, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant