Conditional CJS #30
-
Hi! 👋 Can someone explain why we need to split the And why don't we do the same with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You don't necessarily need to; the document mentions that it's useful if you have additional logic and/or warnings for development mode, then it's useful. But if you don't, then there's no need.
I believe the document doesn't make the distinction between CJS and ESM for this; you should be doing the same thing for ESM. Is there some wording in there that lead you to not think this? |
Beta Was this translation helpful? Give feedback.
You don't necessarily need to; the document mentions that it's useful if you have additional logic and/or warnings for development mode, then it's useful. But if you don't, then there's no need.
I believe the document doesn't make the distinction between CJS and ESM for this; you should be doing the same thing for ESM. Is there some wording in there that lead you to not think this?