#!/bin/sh

jspm bundle --minify --skip-source-maps x-retro + raw + snes9x-next bundle.js
cat jspm_packages/system.js bundle.js config.js > build.js
rm bundle.js
echo 'System.import("x-retro");' >> build.js

#!/bin/sh

node --max_old_space_size=4096 ./node_modules/jspm/jspm.js bundle --minify --skip-source-maps x-retro + raw + snes9x-next + gambatte + vba-next + nestopia + gw + vecx bundle.js
cat jspm_packages/system.js bundle.js config.js > build.js
rm bundle.js
echo 'System.import("x-retro");' >> build.js

Fix Heap out of Memory Error when running jspm bundle
Fix Heap out of Memory Error when running jspm bundle

See:
https://stackoverflow.com/questions/38558989/node-js-heap-out-of-memory
