This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Spawn webpack process with custom --max_old_space_size #430
Open
Description
Would it be possible for you to add to following to compiler.js:
--max_old_space_size=4096
I am building a very large Nativescript app and AOT was just refusing to build, I was always throwing the javascript memory heap error. Adding that to the args in compiler.js fixed it for me.
nativescript-dev-typescript has already added that line to the node args in compiler.js, I guess that it shouldn't be a problem adding it here also if no one ever complained about memory issues with nativescript-dev-typescript.
Thanks! :)