Skip to content

Conversation

@trop
Copy link
Contributor

@trop trop bot commented Oct 8, 2025

Backport of #48375

See that PR for details.

Notes: Support dynamic ESM imports in non-context isolated preloads

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.

Co-authored-by: Fedor Indutny <indutny@signal.org>
@trop trop bot requested a review from a team as a code owner October 8, 2025 08:44
@trop trop bot requested a review from a team October 8, 2025 08:44
@trop trop bot added 37-x-y backport This is a backport PR backport/requested 🗳 semver/minor backwards-compatible functionality labels Oct 8, 2025
@dsanders11
Copy link
Member

Releases WG approved this for backport on Oct 15, 2025

@jkleinsc jkleinsc merged commit b0dea2f into 37-x-y Oct 21, 2025
55 checks passed
@jkleinsc jkleinsc deleted the trop/37-x-y-bp-feat-dynamic-esm-import-in-preload-without-context-isolation-1759913056842 branch October 21, 2025 19:13
@release-clerk
Copy link

release-clerk bot commented Oct 21, 2025

Release Notes Persisted

Support dynamic ESM imports in non-context isolated preloads

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

37-x-y backport/approved ✅ backport This is a backport PR semver/minor backwards-compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants