chore(NA): remove usage of re2 and replace it with a non native module (#188134)

This PR removes the usage of the native module version of `re2` and
replaces it with a js port called `re2js`.
It also ends our usage of native node modules in production and it
removes the task from the build as well. Further steps will be taken
along our strategy to avoid future usages of native node modules in prod
environments.
This commit is contained in:
Tiago Costa 2024-07-15 20:33:28 +01:00 committed by GitHub
parent b3dcc542fa
commit 3c338a82c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 26 additions and 391 deletions

View file

@ -149,10 +149,6 @@ export async function installYarnDeps(log, opts = undefined) {
await runBazel(log, ['run', '@nodejs//:yarn'], {
offline: opts?.offline,
quiet: opts?.quiet,
env: {
RE2_DOWNLOAD_MIRROR:
'https://us-central1-elastic-kibana-184716.cloudfunctions.net/kibana-ci-proxy-cache/node-re2',
},
});
log.success('yarn deps installed');