Skip to content

Commit f7f47a3

Browse files
author
Dimitar Tachev
authored
Merge pull request #4716 from NativeScript/fatme/max-size
fix: increase the max process's size in order to prevent "JavaScript heap out of memory error"
2 parents 4e34163 + 1e4415b commit f7f47a3

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)