Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Math.js blocks React Native production bundling #797
Hi! First let me just say thank you to all the contributors for their hard work on this brilliant library, keep up the good work!
Related GitHub issues:
I created a small sample React Native project where I investigated a bit the cause of the problem. In the project readme I trace and document things as I went along. The problem can be reproduced by attempting to create a production bundle with the React Native packager by running the following command:
This produces the following error message:
For reference I did attempt the above instructions but without success.
To be able to make production builds in React Native one possible temporary solution would be to replace the contents of the file
This may not inherently be the fault of decimal.js nor math.js but rather the React Native packager itself. I'm not too sure about it but given that decimal.js v7.1.1 seems to work without issues I'm optimistic that if upgraded this might at least solve the conflict between Math.js and React Native. Thank you for your time and devotion!