GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing github.com — esm: add `--import` flag by MoLow · Pull Request #43942 · nodejs/node Conversation
|
|
Review requested:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Lines 940 to 941 in d2fe72a
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Is this still spec compliant? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@MylesBorins What part of the spec is relevant? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This needs tests, including around variations of async behaviors:
--import module that contains top-level await.--import module that does something async. Do we automatically await it before the next --import module runs? Before user code runs?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Overall I'm very much in favour of this, thanks for the PR! I didn't follow the full thread, but what is the reasoning for starting with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
198f88f to
5a15e7a
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
dfad8f5 to
a7d6bae
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
added some tests, I am not sure if these are enough tests. please direct me to additional cases that need testing if I missed some. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
I was curious about how this work in populating the internal cache and global state. Will this work similarly to subsequent script tags for example. There might not be a spec issue, just wanted to confirm |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Once this lands, I think we should mark it as blocked from release until we also land the “move loaders off thread” work, since that effort might effect |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
This will need manual backport in case we want to land it in v18. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yes, we need this on 18 to support the module customization hooks. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| [#42511]: https://github.com/nodejs/node/issues/42511 | ||
| [Chrome DevTools Protocol]: https://chromedevtools.github.io/devtools-protocol/ | ||
| [CommonJS]: modules.md | ||
| [CommonJS module]: modules.md |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks like you have two links to the same page here
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Add--import <module> flag for pre-loading ESM modules
There was an error while loading. Please reload this page.