electron/lib/node
Fedor Indutny 7601af5200
fix: don't copy 'package.json's out of ASAR file (#46390)
New Node.js module resolution system reads `package.json` from imported
modules by reading from the file natively in C++ without calling into
`fs.readFileSync`. The ASAR FS wrapper code had copied files out into a
temporary folder as a workaround, but it is inefficient and does not
cover all module resolution mechanisms in Node.js.

In this change we expose `overrideReadFileSync` method on the `modules`
binding in Node.js, and use this override to call into ASAR-supporting
`fs.readFileSync`.
2025-04-03 13:39:53 -07:00
..
asar-fs-wrapper.ts fix: don't copy 'package.json's out of ASAR file (#46390) 2025-04-03 13:39:53 -07:00
init.ts fix: EventSource undefined in Renderer/Worker (#44475) 2024-10-31 15:24:44 -04:00