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

Implement providing the url value in import.meta #1202

Merged
merged 1 commit into from
Jun 28, 2022

Conversation

naugtur
Copy link
Member

@naugtur naugtur commented Jun 2, 2022

Implemented meta.url via module descriptors.

Bundler complained, but I think I've fixed it correctly.

@naugtur naugtur marked this pull request as draft June 2, 2022 09:51
@naugtur naugtur requested a review from kriskowal June 2, 2022 09:51
@naugtur naugtur force-pushed the naugtur-import-meta-url-value branch from f969026 to c12ec20 Compare June 2, 2022 10:00
@naugtur naugtur force-pushed the naugtur-import-meta-url-value branch 2 times, most recently from 825c94f to f5f9ef7 Compare June 7, 2022 14:26
packages/compartment-mapper/src/import-hook.js Outdated Show resolved Hide resolved
packages/ses/index.d.ts Outdated Show resolved Hide resolved
packages/compartment-mapper/test/test-main.js Outdated Show resolved Hide resolved
@naugtur naugtur force-pushed the naugtur-import-meta-url branch 4 times, most recently from 47eefca to b7cd6e7 Compare June 13, 2022 11:10
Base automatically changed from naugtur-import-meta-url to master June 14, 2022 08:48
@naugtur
Copy link
Member Author

naugtur commented Jun 14, 2022

⚠️ now I need to redo most of this to match the import.meta implementation we ended up merging.
Expect a push -f

@naugtur naugtur force-pushed the naugtur-import-meta-url-value branch from f5f9ef7 to 17e1a60 Compare June 15, 2022 10:11
@@ -67,6 +67,7 @@ export type FinalStaticModuleType =
export interface RedirectStaticModuleInterface {
record: FinalStaticModuleType;
specifier: string;
importMeta?: any;
}

export type StaticModuleType =
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part will need a rewrite to match current spec. That's going to happen alongside a wider rewrite to match shapes defined in the compartment proposal later.

@naugtur naugtur force-pushed the naugtur-import-meta-url-value branch from 17e1a60 to 9b29a9c Compare June 15, 2022 10:33
@naugtur naugtur marked this pull request as ready for review June 15, 2022 10:38
@naugtur naugtur requested a review from kriskowal June 15, 2022 10:38
@naugtur naugtur force-pushed the naugtur-import-meta-url-value branch from a0933cd to dccb967 Compare June 23, 2022 07:34
@naugtur
Copy link
Member Author

naugtur commented Jun 23, 2022

@kriskowal All done, I need a rubber stamp.

@naugtur naugtur force-pushed the naugtur-import-meta-url-value branch from dccb967 to 9dd5c12 Compare June 23, 2022 08:47
@naugtur naugtur force-pushed the naugtur-import-meta-url-value branch from 9dd5c12 to bfb537f Compare June 28, 2022 12:17
@naugtur naugtur force-pushed the naugtur-import-meta-url-value branch from bfb537f to d6294f6 Compare June 28, 2022 12:20
@naugtur naugtur merged commit 792db48 into master Jun 28, 2022
@naugtur naugtur deleted the naugtur-import-meta-url-value branch June 28, 2022 12:26
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.

None yet

2 participants