es-tooling / module-replacements

A manifest of JS modules and their more modern/active replacements
MIT License
447 stars 26 forks source link

`supports-preserve-symlinks-flag` #73

Open AbhiPrasad opened 1 month ago

AbhiPrasad commented 1 month ago

https://www.npmjs.com/package/supports-preserve-symlinks-flag

ref: https://github.com/es-tooling/module-replacements/issues/58#issuecomment-2197869098

fwiw you can replace supports-preserve-symlinks-flag with export default typeof window === 'undefined' ? true : null; if it's node 6.2+ (and if you have separate node and browser files, one is just true and the other just null).

benmccann commented 1 month ago

also mentioned in this larger tracking issue: https://github.com/es-tooling/module-replacements/issues/77