react-native-svg
react-native-svg copied to clipboard
fix: web exports on prepare file
Summary
Fixes https://github.com/software-mansion/react-native-svg/discussions/2401
Fixes error in prepare.ts file that imports hasTouchableProperty from a '.' file.
It's probably related to the way ESM works, I'm not sure. I base it on PR
(0 , _.hasTouchableProperty) is not a function
TypeError: (0 , _.hasTouchableProperty) is not a function
at prepare
Test Plan
Should work without error on web
https://github.com/user-attachments/assets/4f7143bf-06f8-4684-844c-d5a147837adb
Compatibility
| OS | Implemented |
|---|---|
| Web | ✅ |
Checklist
- [X] I have tested this on a web project