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: make removeNodeProtocol work with shims #1242

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aryaemami59
Copy link
Contributor

This PR:

  • Fixes removeNodeProtocol to work with shims.

Copy link

codesandbox bot commented Oct 27, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

vercel bot commented Oct 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tsup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 27, 2024 9:08am

Copy link

pkg-pr-new bot commented Oct 27, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/egoist/tsup@1242

commit: 92b0d02

@sxzz
Copy link
Collaborator

sxzz commented Nov 1, 2024

removeNodeProtocol is designed for Node compatibility, but if the version supports ESM, the node protocol is natively supported and doesn't need to be removed.

@sxzz
Copy link
Collaborator

sxzz commented Nov 1, 2024

According to the documentation, the node: protocol is supported in CJS starting from versions v16.0.0 and v14.18.0, and in ESM from versions v14.13.1 and v12.20.0.

Do you think it's necessary to support v12.0.0 >= node < v12.20.0

@aryaemami59
Copy link
Contributor Author

aryaemami59 commented Nov 2, 2024

@sxzz I see what you're saying, I guess the point of the PR is to make removeNodeProtocol apply to shims as well for consistency. Thoughts?

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.

2 participants