NODE_OPTIONS=--max_old_space_size=8192 yarn build

参考链接:
https://www.freesion.com/article/24241202316/