fix(NA): missing --openssl-legacy-provider on webpack worker inside plugin helpers (#169030)

This PR fixes a problem inside plugin-helpers as the webpack runner was
running without `--openssl-legacy-provider` which breaks in the latest
node version.
This commit is contained in:
Tiago Costa 2023-10-16 23:09:52 +01:00 committed by GitHub
parent 9827aece21
commit c3936571fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ export async function optimize({
const proc = fork(require.resolve('./optimize_worker'), {
cwd: REPO_ROOT,
execArgv: ['--require=@kbn/babel-register/install'],
execArgv: ['--require=@kbn/babel-register/install', '--openssl-legacy-provider'],
stdio: ['ignore', 'pipe', 'pipe', 'ipc'],
});