-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Conditionalize __esModule
emit?
#32934
Comments
one use case for this is, if you use Typescript to generate mongodb atlas stitch code, it won't deploy, unless you manually remove the |
Any updates? Almost one year since this issue was created. |
Hi, I also ran into the same problem... |
Ignoring issues for over 3 years isn't the way to go. I'm still having this issue and it's almost 2023. |
Good call. Given the number of people running into this, I don't think a change to the emit is warranted. Alternate transpilers are available if you need support for a niche runtime; we're trying to scale back the emit configuration matrix to mainline scenarios only. |
Numerous issues pointed to from #32083 have people running in environments where it's not safe to emit the
__esModule
property for whatever reason.Instead of adding a flag, we could just emit
(typeof exports !== 'undefined') && Object.defineProperty(...
Thoughts?
The text was updated successfully, but these errors were encountered: