Skip to content

Commit 1e4415b

Browse files
committed
fix: increase the max process's size in order to prevent "JavaScript heap out of memory error"
1 parent 418b72b commit 1e4415b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/services/webpack/webpack-compiler-service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
107107

108108
const args = [
109109
path.join(projectData.projectDir, "node_modules", "webpack", "bin", "webpack.js"),
110+
"--max_old_space_size=4096",
110111
"--preserve-symlinks",
111112
`--config=${path.join(projectData.projectDir, "webpack.config.js")}`,
112113
...envParams

0 commit comments

Comments
 (0)