Open AbhiPrasad opened 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).
also mentioned in this larger tracking issue: https://github.com/es-tooling/module-replacements/issues/77
https://www.npmjs.com/package/supports-preserve-symlinks-flag
ref: https://github.com/es-tooling/module-replacements/issues/58#issuecomment-2197869098