mirror of
https://github.com/antonmedv/fx.git
synced 2024-08-17 06:00:32 +03:00
Increase --max-old-space-size to 16384
This commit is contained in:
parent
8447c13978
commit
936e96151a
@ -34,15 +34,21 @@ func reduce(fns []string) {
|
||||
}
|
||||
}
|
||||
|
||||
env := os.Environ()
|
||||
var args []string
|
||||
|
||||
if deno {
|
||||
args = []string{"run", "-A", script}
|
||||
env = append(env, "V8_FLAGS=--max-old-space-size=16384")
|
||||
} else {
|
||||
args = []string{script}
|
||||
env = append(env, "NODE_OPTIONS=--max-old-space-size=16384")
|
||||
}
|
||||
|
||||
args = append(args, fns...)
|
||||
|
||||
cmd := exec.Command(bin, args...)
|
||||
cmd.Env = env
|
||||
cmd.Stdin = os.Stdin
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
|
Loading…
Reference in New Issue
Block a user