Skip to content

fix: do not load source for electron module in ESM loader synchronous flow#47343

Merged
codebytere merged 2 commits into36-x-yfrom
trop/36-x-y-bp-fix-do-not-load-source-for-electron-module-in-esm-loader-synchronous-flow-1748947826041
Jun 5, 2025
Merged

fix: do not load source for electron module in ESM loader synchronous flow#47343
codebytere merged 2 commits into36-x-yfrom
trop/36-x-y-bp-fix-do-not-load-source-for-electron-module-in-esm-loader-synchronous-flow-1748947826041

Conversation

@trop
Copy link
Contributor

@trop trop bot commented Jun 3, 2025

Backport of #46810

See that PR for details.

Notes: Fixed an error when importing electron for the first time from an ESM module loaded by a CJS module in a packaged app.

Co-authored-by: clavin <clavin@electronjs.org>
@trop trop bot requested a review from a team as a code owner June 3, 2025 10:50
@trop trop bot requested review from a team and clavin June 3, 2025 10:50
@trop trop bot added 36-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Jun 3, 2025
@codebytere codebytere merged commit 8e93599 into 36-x-y Jun 5, 2025
90 of 93 checks passed
@codebytere codebytere deleted the trop/36-x-y-bp-fix-do-not-load-source-for-electron-module-in-esm-loader-synchronous-flow-1748947826041 branch June 5, 2025 08:04
@release-clerk
Copy link

release-clerk bot commented Jun 5, 2025

Release Notes Persisted

Fixed an error when importing electron for the first time from an ESM module loaded by a CJS module in a packaged app.

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

Labels

36-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants