-
Notifications
You must be signed in to change notification settings - Fork 7
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
Rename to "Module Declarations" and update readme #22
Rename to "Module Declarations" and update readme #22
Conversation
I'm wondering if we can merge those two proposals into one. |
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.
Good cleanup
|
||
### Does this proposal work with import maps? | ||
|
||
[Import maps](https://github.com/WICG/import-maps) can be used in conjunction with module fragments, in that the import map can redirect bare specifiers to be found in module fragments, rather than independent fetches. Mechanically: The lookup in the import map (which is done as part of "resolving a module specifier") precedes the interpretation of fragments in the module specifier (which are treated as part of the module map key). (TODO: add example of use together.) | ||
[Import maps](https://github.com/WICG/import-maps) can be used in conjunction with module declarations, in that the import map can redirect bare specifiers to be found in module declarations, rather than independent fetches. Mechanically: The lookup in the import map (which is done as part of "resolving a module specifier") precedes the interpretation of declarations in the module specifier (which are treated as part of the module map key). (TODO: add example of use together.) |
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.
Note, this part doesn't really apply anymore without import map extensions; we should track that in an issue.
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 commented this section out for now, and renamed #10 to include "import maps" in the title (since it's effectively what that issue is about).
@Jack-Works I prefer to leave them separate for now, as module expressions is a much simpler proposal and works on its own and so would come first. They are designed to compose well; I am glad that we have this design fully sketched out. |
f50adae
to
ab40a61
Compare
ce3c9d6
to
6c1bc6f
Compare
This is parallel to tc39/proposal-module-expressions#77: the two proposals are now named "Module Expressions" and "Module Declarations", to better explain their relationship and their differences.