#47968: fix: allow importing from electron/utility at runtime
Merged
Description of Change
Fixes importing from electron/utility
since currently the following will be typed correctly, but throw a ERR_MODULE_NOT_FOUND
error at runtime:
const { net } = require('electron/utility');
net.request('https://electronjs.org')
Checklist
- PR description included and stakeholders cc'd
- PR release notes describe the change in a way relevant to app developers, and are capitalized, punctuated, and past tense.
Release Notes
Notes: Fixed an issue where importing from electron/utility
threw a ERR_MODULE_NOT_FOUND
error at runtime
Backports
38-x-y
MergedPR Number
#47989Merged At
Aug 7, 2025, 5:12:42 AM
Released In
v38.0.0-beta.2Release Date
Aug 7, 2025, 8:31:56 AM
Semver Impact
Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.
Semantic Versioning helps users understand the impact of updates:
- Major (X.y.z): Breaking changes that may require code modifications
- Minor (x.Y.z): New features that maintain backward compatibility
- Patch (x.y.Z): Bug fixes that don't change the API
- None: Changes that don't affect using facing parts of Electron