Skip to content

Commit f8647c2

Browse files
author
Dimitar Tachev
authored
Merge pull request #4753 from NativeScript/tachev/fix-webpack-memory
fix: pass the max_old_space_size option to nodejs, not webpack
2 parents 4732694 + 3f33dd1 commit f8647c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
117117
];
118118

119119
if (process.arch === "x64") {
120-
args.push("--max_old_space_size=4096");
120+
args.unshift("--max_old_space_size=4096");
121121
}
122122

123123
if (prepareData.watch) {

0 commit comments

Comments
 (0)