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: Revert "fix: resolve cjs deps as cjs instead of esm (#362)" #365

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

cb1kenobi
Copy link
Contributor

@cb1kenobi cb1kenobi commented Oct 2, 2023

This reverts commit 1eba4d5.

The fix in the original PR did solve the problem of tracing a dependency being loaded from an ESM file via require(), but also caused a regression where a simple .mjs file with ESM imports was failing. I have a test (#364) for that.

Copy link

@orca-security-us orca-security-us bot left a comment

Choose a reason for hiding this comment

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

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca

@styfle
Copy link
Member

styfle commented Oct 2, 2023

@cb1kenobi Can you update the PR description to explain why its reverted?

@styfle styfle changed the title Revert "fix: resolve cjs deps as cjs instead of esm (#362)" fix: Revert "fix: resolve cjs deps as cjs instead of esm (#362)" Oct 2, 2023
@styfle styfle merged commit 544e352 into main Oct 2, 2023
15 of 19 checks passed
@styfle styfle deleted the revert-362-resolve-cjs-as-cjs-not-esm branch October 2, 2023 21:42
@github-actions
Copy link

github-actions bot commented Oct 2, 2023

🎉 This PR is included in version 0.24.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants