Unverified Commit 00f1519a authored by vcnc-hex's avatar vcnc-hex Committed by GitHub

Fix forked NODE_OPTIONS except for inspect (#28420)

parent d143d987
...@@ -4,6 +4,7 @@ import * as Log from '../build/output/log' ...@@ -4,6 +4,7 @@ import * as Log from '../build/output/log'
import { CheckReasons, CheckResult } from './config-utils-worker' import { CheckReasons, CheckResult } from './config-utils-worker'
import { install, shouldLoadWithWebpack5 } from './config-utils-worker' import { install, shouldLoadWithWebpack5 } from './config-utils-worker'
import { PHASE_PRODUCTION_SERVER } from '../shared/lib/constants' import { PHASE_PRODUCTION_SERVER } from '../shared/lib/constants'
import { getNodeOptionsWithoutInspect } from './lib/utils'
export { install, shouldLoadWithWebpack5 } export { install, shouldLoadWithWebpack5 }
...@@ -31,7 +32,7 @@ export async function loadWebpackHook(phase: string, dir: string) { ...@@ -31,7 +32,7 @@ export async function loadWebpackHook(phase: string, dir: string) {
forkOptions: { forkOptions: {
env: { env: {
...process.env, ...process.env,
NODE_OPTIONS: '', NODE_OPTIONS: getNodeOptionsWithoutInspect(),
}, },
}, },
} }
......
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