-
Notifications
You must be signed in to change notification settings - Fork 16.9k
feat: dynamic ESM import in preload without context isolation #48375
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
feat: dynamic ESM import in preload without context isolation #48375
Conversation
|
Can you rebase on latest |
f8fd799 to
eefce0c
Compare
|
@deepak1556 you got it! |
deepak1556
left a comment
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.
Implementation LGTM 👍
eefce0c to
652f656
Compare
Extend `HostImportModuleWithPhaseDynamically`'s routing to support Node.js import resolution in non-context-isolated preloads through `v8_host_defined_options` length check. The length of host defined options is distinct between Blink and Node.js and we can use it to determine which resolver to use.
652f656 to
475a0a7
Compare
jkleinsc
left a comment
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.
API LGTM
|
API LGTM |
|
Release Notes Persisted
|
|
I have automatically backported this PR to "37-x-y", please check out #48487 |
|
I have automatically backported this PR to "39-x-y", please check out #48488 |
|
I have automatically backported this PR to "38-x-y", please check out #48489 |
|
Thank you everyone! |
…on#48375) Dynamic ESM import in non-context-isolated preload Extend `HostImportModuleWithPhaseDynamically`'s routing to support Node.js import resolution in non-context-isolated preloads through `v8_host_defined_options` length check. The length of host defined options is distinct between Blink and Node.js and we can use it to determine which resolver to use.
…on#48375) Dynamic ESM import in non-context-isolated preload Extend `HostImportModuleWithPhaseDynamically`'s routing to support Node.js import resolution in non-context-isolated preloads through `v8_host_defined_options` length check. The length of host defined options is distinct between Blink and Node.js and we can use it to determine which resolver to use.
…on#48375) Dynamic ESM import in non-context-isolated preload Extend `HostImportModuleWithPhaseDynamically`'s routing to support Node.js import resolution in non-context-isolated preloads through `v8_host_defined_options` length check. The length of host defined options is distinct between Blink and Node.js and we can use it to determine which resolver to use.
…on#48375) Dynamic ESM import in non-context-isolated preload Extend `HostImportModuleWithPhaseDynamically`'s routing to support Node.js import resolution in non-context-isolated preloads through `v8_host_defined_options` length check. The length of host defined options is distinct between Blink and Node.js and we can use it to determine which resolver to use.
Description of Change
Extend
HostImportModuleWithPhaseDynamically's routing to support Node.js import resolution in non-context-isolated preloads throughv8_host_defined_optionslength check. The length of host defined options is distinct between Blink and Node.js and we can use it to determine which resolver to use.Checklist
npm testpassesRelease Notes
Notes: Support dynamic ESM imports in non-context isolated preloads
cc @MarshallOfSound