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

require.extensions is deprecated #1302

Closed
NickHeiner opened this issue May 3, 2021 · 2 comments
Closed

require.extensions is deprecated #1302

NickHeiner opened this issue May 3, 2021 · 2 comments

Comments

@NickHeiner
Copy link

This project works via require.extensions: docs, code. However, the Node docs say that require.extensions is deprecated.

image

Does this project have a path forward towards using a non-deprecated approach?

@cspotcode
Copy link
Collaborator

Correct, that has been the case for an extremely long time and node does not offer alternatives. Unless you're referring to ESM loaders, in which case yes, we have one of those. See #1007

Although it is deprecated, experience shows that it is also stable, and has been that way for years. If you're concerned that this deprecation is a risk, don't worry. All the evidence suggests that this API surface is not going anywhere.

If you're curious about this topic, you may want to check node's issue tracker, since it's possible that users have requested a non-deprecated API surface to replace this one. The node folks might have some thoughts on why they opted to keep this stable, deprecated API surface instead of creating a replacement. You can also dig deeper into our issue tracker since this has already been asked here.

@NickHeiner
Copy link
Author

That's fair. Thanks for the thoughtful analysis!

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

2 participants