Skip to content

Commit 3f33dd1

Browse files
committed
fix: pass the max_old_space_size option to nodejs, not webpack
1 parent 4732694 commit 3f33dd1

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)