Skip to content

Commit

Permalink
fix(NA): missing --openssl-legacy-provider on webpack worker inside p…
Browse files Browse the repository at this point in the history
…lugin 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.
  • Loading branch information
mistic authored Oct 16, 2023
1 parent 9827aec commit c393657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kbn-plugin-helpers/src/tasks/optimize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
});

Expand Down

0 comments on commit c393657

Please sign in to comment.