Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
doc: fix explanation of package.json "type" field#27516
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
Conversation
BridgeAR commented May 13, 2019
@nodejs/modules-active-members PTAL |
GeoffreyBooth commented May 13, 2019
I'm not sure that this is an improvement. I think it's important for users to know that both |
tamias commented May 13, 2019
@GeoffreyBooth
The edited paragraph documents the "type" field specifically. The original text implies that the "type" field affects how |
gireeshpunathil commented Dec 18, 2019
ping @GeoffreyBooth |
GeoffreyBooth commented Dec 18, 2019
I disagree with this change. While the field may not affect |
bmeck left a comment
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.
I do not find the removal to improve clarity or ease of searching for information.
Uh oh!
There was an error while loading. Please reload this page.
tamias commented Dec 19, 2019
How about, in addition to this change, adding a sentence in the
|
bmeck commented Dec 19, 2019
@tamias that seems fine |
Trott commented Dec 31, 2019
bmeck commented Dec 31, 2019
@Trott lgtm |
Remove erroneous reference to files with `.mjs` extension, which are not affected by the package.json "type" field.
Added sentence about the type field not affecting .mjs and .cjs files.
tamias commented Dec 31, 2019
I was already working on the rebase. 😛 A separate paragraph had already been added at the end of that doc section; in the rebase I put my sentence after that paragraph. Still look okay that way? |
bmeck commented Dec 31, 2019
seems fine |
Trott commented Dec 31, 2019
@GeoffreyBooth Does this change look OK to you now? Or is it still problematic from your point of view? |
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: Geoffrey Booth <[email protected]>
GeoffreyBooth commented Jan 2, 2020
Looks good now, thanks! |
Regardless of the value of the `"type"` field, `.mjs` files are always treated as ES modules and `.cjs` files are always treated as CommonJS. PR-URL: #27516 Reviewed-By: Bradley Farias <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
BridgeAR commented Jan 3, 2020
Regardless of the value of the `"type"` field, `.mjs` files are always treated as ES modules and `.cjs` files are always treated as CommonJS. PR-URL: #27516 Reviewed-By: Bradley Farias <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Regardless of the value of the `"type"` field, `.mjs` files are always treated as ES modules and `.cjs` files are always treated as CommonJS. PR-URL: #27516 Reviewed-By: Bradley Farias <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Regardless of the value of the `"type"` field, `.mjs` files are always treated as ES modules and `.cjs` files are always treated as CommonJS. PR-URL: #27516 Reviewed-By: Bradley Farias <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Remove erroneous reference to files with
.mjsextension, which are not affected by the "type" field.Checklist