You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vfs: extend toggleable wrappers to readFileSync and internalModuleStat
ESM files capture fs methods at import time before VFS patches are
applied. Extend the toggle pattern (used for toRealPath) to
readFileSync and internalModuleStat so VFS can intercept these calls
in the ESM loader.
- Add readFileSync/setCustomReadFileSync wrappers to helpers.js
- Add internalModuleStat/setCustomInternalModuleStat wrappers
- Update esm/load.js and esm/translators.js to use helpers.readFileSync
- Update esm/resolve.js to use helpers.internalModuleStat
- Fix pre-existing bug: StringPrototypeEndsWith received wrong first arg
- Revert inline extensionFormatMap, import from esm/formats instead
- Register new VFS overrides in module_hooks.js installModuleHooks()
- Add buffer independence test for SEA VFS
- Document C++ package.json reader gap for VFS packages
0 commit comments