I am running my project through ionic serve, and am having an issue of a Javascript heap out of memory after a few live reloads (usually 5ish). The full error is reported below.
[13:21:52] rollup: Use of eval
(in /Library/WebServer/Documents/plank38/node_modules/angularfire2/node_modules/firebase/firebase.js) is strongly discouraged, as it poses security risks and may cause issues with minification. See https://github.com/rollup/rollup/wiki/Troubleshooting#avoiding-eval for more details
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
<— Last few GCs —>
329803 ms: Mark-sweep 1259.1 (1434.4) -> 1259.1 (1434.4) MB, 1044.5 / 0 ms [allocation failure] [GC in old space requested].
330854 ms: Mark-sweep 1259.1 (1434.4) -> 1259.1 (1434.4) MB, 1051.3 / 0 ms [allocation failure] [GC in old space requested].
331940 ms: Mark-sweep 1259.1 (1434.4) -> 1259.1 (1434.4) MB, 1086.0 / 0 ms [last resort gc].
333031 ms: Mark-sweep 1259.1 (1434.4) -> 1259.1 (1434.4) MB, 1091.4 / 0 ms [last resort gc].
<— JS stacktrace —>
==== JS stack trace =========================================
Security context: 0x407643c9fa9
1: /* anonymous /(aka / anonymous */) [/Library/WebServer/Documents/plank38/node_modules/rollup/dist/rollup.js:~8335] [pc=0x13be225ca46e] (this=0x40764304189 ,segment=0x2a7b75550cd1 <JS Array[4]>)
2: arguments adaptor frame: 3->1
3: InnerArrayForEach(aka InnerArrayForEach) [native array.js:~946] [pc=0x13be225b76df] (this=0x40764304189 ,br=0x3c107648e301 <JS Fu…
I have to restart ionic serve everytime this happens. Could this possibly be a memory leak in my application, or is it a problem with rollup?