From c3936571fcbd161b479b7b1908793fe8ccc5ebdf Mon Sep 17 00:00:00 2001 From: Tiago Costa Date: Mon, 16 Oct 2023 23:09:52 +0100 Subject: [PATCH] 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. --- packages/kbn-plugin-helpers/src/tasks/optimize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kbn-plugin-helpers/src/tasks/optimize.ts b/packages/kbn-plugin-helpers/src/tasks/optimize.ts index 3edc17e879656..e235b69b88ada 100644 --- a/packages/kbn-plugin-helpers/src/tasks/optimize.ts +++ b/packages/kbn-plugin-helpers/src/tasks/optimize.ts @@ -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'], });