Skip to content

Commit 5f3dd1b

Browse files
committed
fix: extend process's max size only for x64 processes
1 parent f7f47a3 commit 5f3dd1b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,15 @@ 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",
111110
"--preserve-symlinks",
112111
`--config=${path.join(projectData.projectDir, "webpack.config.js")}`,
113112
...envParams
114113
];
115114

115+
if (process.arch === "x64") {
116+
args.push("--max_old_space_size=4096");
117+
}
118+
116119
if (prepareData.watch) {
117120
args.push("--watch");
118121
}

0 commit comments

Comments
 (0)