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

allow require('util') to throw #46

Closed
wants to merge 2 commits into from
Closed

Conversation

easrng
Copy link

@easrng easrng commented Feb 27, 2025

adds support for cjs environments with no node core modules and no bundler-style browser resolution

@ljharb
Copy link
Member

ljharb commented Feb 27, 2025

As discussed offline, I'm not willing to add a perf hit for common cases just to cover an edge case; browsers must use a working bundler (ie, supports the browser field) anyways or they can't use this package or most of npm.

I'll close this for now, but let's keep chatting - if there's a way to make things better for edge cases that doesn't impact common cases, I'm always happy to consider it!

@ljharb ljharb closed this Feb 27, 2025
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