Conversation
doc: add miss line for cjs
|
Review requested:
|
|
I think the message should be |
|
Thanks for the PR. |
|
In that case shall we remove it from ESM? (and eventually look for other places in our docs? |
@aduh95 It's not equivalent with the ESM demo, If we do omit it, it should be removed. |
@ShogunPanda I just make it same to the ESM demo. And most of the demo use manually import for |
Who said that CJS and ESM examples needed to be line-by-line equivalent?
No, for ESM we made the choice to always import Node.js-specific globals. |
No one, it was my assumption.
I see, didn't know about it. We don't need to do anything then. |
In other examples this norm is not followed. No one said anything was necessary, but I think it is necessary to follow a unified processing method. You can just turn off the PR. It's not my project, and it has nothing to do with me whether it's good or bad. |
Do you have specific examples where this is the case? It seems we should fix those. |
It was done in #39043. |
doc: add miss line for cjs