NODE_ENV environment variable is commonly used to dictate how to build a javascript app. If it is set to “production”, all debug code should be stripped out.
NODE_ENV
Originally published on August 8 2016.
While working on a React project, I noticed abyssal performances on Safari only.
Originally published on August 4 2016.
Disclaimer: I had to implement this solution because of some imperatives (coder life…), but this is not good programming practice. Hopefully Android 5 will let us do it properly.