Unverified Commit fe989a23 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

the argument might be written with underscores (#63600)

### What?

You can pass `--max_old_space_size=` with underscores instead of dashes
which wasn't handled yet.

### Why?

### How?



Closes PACK-2817
parent 368e9aa9
...@@ -62,7 +62,7 @@ export function checkNodeDebugType() { ...@@ -62,7 +62,7 @@ export function checkNodeDebugType() {
export function getMaxOldSpaceSize() { export function getMaxOldSpaceSize() {
const maxOldSpaceSize = process.env.NODE_OPTIONS?.match( const maxOldSpaceSize = process.env.NODE_OPTIONS?.match(
/--max-old-space-size=(\d+)/ /--max[-_]old[-_]space[-_]size=(\d+)/
)?.[1] )?.[1]
return maxOldSpaceSize ? parseInt(maxOldSpaceSize, 10) : undefined return maxOldSpaceSize ? parseInt(maxOldSpaceSize, 10) : undefined
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment