fix: internalModuleReadJSON for unpacked JSON (#26749)
This commit is contained in:
parent
c2909a3b8d
commit
efca7007b6
2 changed files with 4 additions and 2 deletions
|
@ -689,7 +689,8 @@ export const wrapFsWithAsar = (fs: Record<string, any>) => {
|
|||
if (info.size === 0) return ['', false];
|
||||
if (info.unpacked) {
|
||||
const realPath = archive.copyFileOut(filePath);
|
||||
return fs.readFileSync(realPath, { encoding: 'utf8' });
|
||||
const str = fs.readFileSync(realPath, { encoding: 'utf8' });
|
||||
return [str, str.length > 0];
|
||||
}
|
||||
|
||||
logASARAccess(asarPath, filePath, info.offset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue