| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Review requested:
|
Sorry, something went wrong.
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. While we're at it, I wouldn't mind a switch from builtin to built-in but that may be a "tabs vs. spaces" kind of discussion, so I'm OK with this as it is.
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you for doing this!
Sorry, something went wrong.
|
I know we were nearly ready to go on this, but I just took a look today and ended up putting a little more time into reworking the differences section. See c4258d2 for the latest commit. The gist of the new changes are the last bullet points in the description of this issue:
|
Sorry, something went wrong.
|
@devsnek I've posted an update to remove the example, and mentioned createRequire first in this case. |
Sorry, something went wrong.
|
With the new link to process.dlopen I've also now made some minor edits to the process.dlopen documentation to make it slightly more accessible to ES module consumers - noting that ES modules are a valid exception for usage, removing require.resolve from the example, and including the explicit module object creation there. @Trott if you have a moment to review the latest commit here I'd value your sign-off here again. |
Sorry, something went wrong.
Co-authored-by: Rich Trott <rtrott@gmail.com>
PR-URL: #36046 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
PR-URL: #36046 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
PR-URL: #36046 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
PR-URL: #36046 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
PR-URL: #36046 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
|
This PR removed the [very helpful] example for how to reproduce the __dirname and __filename vars. Was this intentional, or is this a a regression that should be fixed? See diff here.) |
Sorry, something went wrong.
|
@broofa all the examples intentionally use the new URL('./specifier', import.meta.url) pattern because this makes asset reference analysis in bundlers much simpler, than the complex __filename and __dirname analysis that will be further complicated by techniques to set them, such as for example is used in ncc when relocating assets. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
I just went through the esm.md docs and consolidated sections where it seemed to make sense as well as reordering the structure slightly now that the layout of this page is finally stable.
Changes include:
Checklist