electron/docs
trop[bot] b0dea2f1c1
feat: dynamic ESM import in preload without context isolation (#48487)
* 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.

Co-authored-by: Fedor Indutny <indutny@signal.org>

* chore: update patches

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Fedor Indutny <indutny@signal.org>
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
2025-10-21 15:13:05 -04:00
..
api docs: clarify optional args in webFrame.executeJavaScript() (#48459) 2025-10-04 18:44:51 +02:00
development build: refactor Linux binary stripping to align with upstream (#48207) 2025-08-29 10:49:53 -04:00
fiddles docs: unify documentation example and fiddle for IPC pattern-1 (#46517) 2025-04-10 12:08:10 +02:00
images feat: Corner Smoothing CSS rule (Reland) (#46278) 2025-03-31 11:22:23 -05:00
tutorial feat: dynamic ESM import in preload without context isolation (#48487) 2025-10-21 15:13:05 -04:00
api-history.schema.json docs: api history (#42982) 2024-08-19 11:17:10 -07:00
breaking-changes.md fix: utilityProcess running user script after process.exit is called (#47492) 2025-06-17 21:01:50 -05:00
experimental.md docs: fix apostrophe typo "Electrons" -> "Electron's" (#44516) 2024-11-02 15:52:22 -05:00
faq.md docs: no class inheritance (#47433) 2025-06-10 13:12:24 +02:00
glossary.md docs: update docs.microsoft.com links to learn.microsoft.com (#37707) 2023-03-29 12:16:44 +02:00
README.md docs: add documentation for ImageView (#47297) 2025-05-30 13:48:13 +02:00
why-electron.md docs: update example apps (#47600) 2025-06-29 21:58:08 +02:00

Official Guides

Please make sure that you use the documents that match your Electron version. The version number should be a part of the page URL. If it's not, you are probably using the documentation of a development branch which may contain API changes that are not compatible with your Electron version. To view older versions of the documentation, you can browse by tag on GitHub by opening the "Switch branches/tags" dropdown and selecting the tag that matches your version.

FAQ

There are questions that are asked quite often. Check this out before creating an issue:

Guides and Tutorials

Getting started

Learning the basics

Advanced steps

Detailed Tutorials

These individual tutorials expand on topics discussed in the guide above.


API References

Custom Web Features:

Modules for the Main Process:

Modules for the Renderer Process (Web Page):

Modules for Both Processes:

Development

See development/README.md