Meteor build fails with FabricJS


#1

Hey guys,
I’ve added FabricJS to one of my projects. While in dev mode everything is running fine, I get a build error during “Minifying app code” in production mode:

  Minifying app code                        -
<--- Last few GCs --->

   62133 ms: Scavenge 1401.6 (1455.6) -> 1401.6 (1455.6) MB, 7.8 / 0 ms (+ 14.1 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
   63367 ms: Mark-sweep 1401.6 (1455.6) -> 1397.0 (1453.6) MB, 1233.7 / 0 ms (+ 342.9 ms in 351 steps since start of marking, biggest step 14.5 ms) [last resort gc].
   64584 ms: Mark-sweep 1397.0 (1453.6) -> 1397.5 (1455.6) MB, 1217.5 / 0 ms [last resort gc].


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x932fe437399 <JS Object>
    1: get [/Users/nisha/.meteor/packages/standard-minifier-js/.2.1.1.x9w2by++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-traverse/lib/path/index.js:~76] [pc=0x1f2f13e59bea] (this=0xb59c8bccec9 <JS Function NodePath (SharedFunctionInfo 0x244ede839111)>,_ref=0x2c81b367dde1 <an Object with map 0x24d3a5e76eb1>)
    2: node [/Users/nisha...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Abort trap: 6

Any idea what I can do? My machine has 8 GB of RAM (iMac), so I guess it should work?