Skip to content

Commit 4023f8d

Browse files
committed
fix: increase Node memory limit to workaround webpack crash, fix vuejs#1453
1 parent 46dd855 commit 4023f8d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/@vue/cli-service/bin/vue-cli-service.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
#!/usr/bin/env node
1+
#!/usr/bin/env node --max_old_space_size=4096
2+
3+
/**
4+
* --max_old_space_size to increase V8 default heap size.
5+
* Temporary workaround for memory leaks in webpack and high memory usage
6+
* from file watching & sourcemap generation.
7+
* https://github.com/vuejs/vue-cli/issues/1453
8+
*/
29

310
const semver = require('semver')
411
const { error } = require('@vue/cli-shared-utils')

0 commit comments

Comments
 (0)