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

Conditional Exports: Supporting both import and require() #12

Closed
juergenzimmermann opened this issue Jun 18, 2021 · 2 comments
Closed

Comments

@juergenzimmermann
Copy link

https://dev.to/bnb/conditional-exports-supporting-both-import-and-require-3ihg explains how to support both import and require().

@sindresorhus
Copy link
Owner

Sorry, I don't plan to support both.

@awwright
Copy link

awwright commented Apr 1, 2022

I was about to file a bug because I couldn't figure out how to get strip-indent to work in Node.js. I don't think ending support for Node.js is reasonable. I'm just going to have to lock at an older version, or maybe hard-code an algorithm.

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

3 participants