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

fix(node): cjs pkg dynamically importing esm-only pkg fails #24730

Merged
merged 4 commits into from
Jul 26, 2024

Conversation

dsherret
Copy link
Member

Just a test for now. Looking into it.

Closes #24722

@dsherret dsherret changed the title fix(node): cjs pkg dynamically importing esm pkg with exports fails fix(node): cjs pkg dynamically importing esm-only pkg fails Jul 25, 2024
@dsherret dsherret marked this pull request as ready for review July 25, 2024 23:55
NodeModuleKind::Cjs => REQUIRE_CONDITIONS,
},
// even though the referrer may be CJS, if we're here that means we're doing ESM resolution
DEFAULT_CONDITIONS,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dsherret dsherret merged commit 7907265 into denoland:main Jul 26, 2024
17 of 20 checks passed
@dsherret dsherret deleted the fix_dynamic_import_cjs_of_esm_pkg branch July 26, 2024 01:40
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

Successfully merging this pull request may close these issues.

[Sveltekit] Module import fails starting from Deno 1.45.0
2 participants