-
Notifications
You must be signed in to change notification settings - Fork 30k
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
doc: add examples for implementing ESM #33168
Conversation
@nodejs/modules-active-members |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR seems to be adding an example explaining how import
and export
work in JavaScript in general, not particular to Node. I thought our general rule was that the Node docs only describe things specific to Node; they're not a general JavaScript tutorial like MDN. See #31479.
It's fine to add links to MDN, but we shouldn't be duplicating that resource.
I think having a small example is fine, but if we could link to MDN like @GeoffreyBooth states as well it would give people a place to get a more in depth understanding. |
@GeoffreyBooth @bmeck There are links to MDN (for @dnalborczyk @aduh95 Fixed. Feedback is appreciated. Thanks! |
Landed in 4780493 |
Fixes: #28060 PR-URL: #33168 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Bradley Farias <[email protected]>
Fixes: #28060 PR-URL: #33168 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Bradley Farias <[email protected]>
Fixes: #28060 PR-URL: #33168 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Bradley Farias <[email protected]>
Fixes: nodejs#28060 PR-URL: nodejs#33168 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Bradley Farias <[email protected]>
Fixes: #28060
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes