Skip to content

Commit de7d52c

Browse files
authored
Merge pull request #4717 from NativeScript/fatme/max-size-2
fix: extend process's max size only for `x64` processes
2 parents ac38f16 + 5f3dd1b commit de7d52c

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)