Problem:
On dev we are pointing to dist/web.development.js which is a bit more difficult to test code changes.
My current workaround is:
Run npm run build in /react-native-onyx
Copy web.developent.js to local project/node_modules/react-native-onyx/dist
Potential Solutions:
- Stop using that build and just use the local files in
node_modules directly
OR
- Use webpack to watch changes and build the dist + link local
node_modules to local react-native-onyx
I would prefer the former as having the minified builds in sources makes debugging things harder for no clear benefit.