When bundling js for React Native using ClojureScript I got the following error. It seems that node runs out of memory when bundling the javascript bundle. This is probably
For android, this can also be set in android/app/build.gradle by adding:
project.ext.react = [
// override which node gets called and with what additional arguments
nodeExecutableAndArgs: ["node", "--max-old-space-size=4096"]
]
note that this must be added above the following line:
apply from: "../../node_modules/react-native/react.gradle"