From 55781b7bab26d3b1170225f4c0e36043f345f877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Fern=C3=A1ndez=20Haro?= Date: Thu, 29 Aug 2024 23:12:23 +0200 Subject: [PATCH] refactor(): add `@elastic/apm-rum-core` to shared deps (#187424) --- packages/kbn-ui-shared-deps-npm/BUILD.bazel | 1 + packages/kbn-ui-shared-deps-npm/webpack.config.js | 1 + packages/kbn-ui-shared-deps-src/src/definitions.js | 1 + packages/kbn-ui-shared-deps-src/src/entry.js | 1 + 4 files changed, 4 insertions(+) diff --git a/packages/kbn-ui-shared-deps-npm/BUILD.bazel b/packages/kbn-ui-shared-deps-npm/BUILD.bazel index 937cbe0c2a8ef..48f234b0bfe10 100644 --- a/packages/kbn-ui-shared-deps-npm/BUILD.bazel +++ b/packages/kbn-ui-shared-deps-npm/BUILD.bazel @@ -37,6 +37,7 @@ RUNTIME_DEPS = [ "@npm//whatwg-fetch", "@npm//symbol-observable", "@npm//@babel/runtime", + "@npm//@elastic/apm-rum-core", "@npm//@elastic/charts", "@npm//@elastic/eui", "@npm//@elastic/numeral", diff --git a/packages/kbn-ui-shared-deps-npm/webpack.config.js b/packages/kbn-ui-shared-deps-npm/webpack.config.js index 294bffdaaa833..34b70f3ea6dfb 100644 --- a/packages/kbn-ui-shared-deps-npm/webpack.config.js +++ b/packages/kbn-ui-shared-deps-npm/webpack.config.js @@ -58,6 +58,7 @@ module.exports = (_, argv) => { '@babel/runtime/helpers/wrapNativeSuper', // modules from npm + '@elastic/apm-rum-core', '@elastic/charts', '@elastic/eui', '@elastic/eui/optimize/es/components/provider/nested', diff --git a/packages/kbn-ui-shared-deps-src/src/definitions.js b/packages/kbn-ui-shared-deps-src/src/definitions.js index 6f7bff397d320..8dbe5bfbc2828 100644 --- a/packages/kbn-ui-shared-deps-src/src/definitions.js +++ b/packages/kbn-ui-shared-deps-src/src/definitions.js @@ -102,6 +102,7 @@ const externals = { '@tanstack/react-query-devtools': '__kbnSharedDeps__.ReactQueryDevtools', '@kbn/code-editor': '__kbnSharedDeps__.KbnCodeEditor', '@kbn/esql-ast': '__kbnSharedDeps__.KbnEsqlAst', + '@elastic/apm-rum-core': '__kbnSharedDeps__.ElasticApmRumCore', }; module.exports = { distDir, jsFilename, cssDistFilename, externals }; diff --git a/packages/kbn-ui-shared-deps-src/src/entry.js b/packages/kbn-ui-shared-deps-src/src/entry.js index 5347952978780..5b56e10108153 100644 --- a/packages/kbn-ui-shared-deps-src/src/entry.js +++ b/packages/kbn-ui-shared-deps-src/src/entry.js @@ -75,3 +75,4 @@ export const ReactQuery = require('@tanstack/react-query'); export const ReactQueryDevtools = require('@tanstack/react-query-devtools'); export const KbnCodeEditor = require('@kbn/code-editor'); export const KbnEsqlAst = require('@kbn/esql-ast'); +export const ElasticApmRumCore = require('@elastic/apm-rum-core');