Skip to content
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

Merged

Conversation

nicolo-ribaudo
Copy link
Member

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.

@Jack-Works
Copy link
Member

I'm wondering if we can merge those two proposals into one. Module Expression + Module Declaration + Import Module Declaration syntax => Reified module

Copy link
Member

@littledan littledan left a 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.)
Copy link
Member

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.

Copy link
Member Author

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).

README.md Show resolved Hide resolved
@littledan
Copy link
Member

@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.

@nicolo-ribaudo nicolo-ribaudo force-pushed the update-readme-rename-proposal branch 4 times, most recently from f50adae to ab40a61 Compare November 16, 2022 22:05
@nicolo-ribaudo nicolo-ribaudo force-pushed the update-readme-rename-proposal branch from ce3c9d6 to 6c1bc6f Compare November 16, 2022 22:06
@nicolo-ribaudo nicolo-ribaudo merged commit b5d1eea into tc39:main Nov 16, 2022
@nicolo-ribaudo nicolo-ribaudo deleted the update-readme-rename-proposal branch November 16, 2022 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants