From b64ff102045585b2f28ced7a612edcafd0944b6e Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Mon, 30 Dec 2024 13:44:44 +0100 Subject: [PATCH] Add `@kbn/shared-ux-router` to shared bundle (#204786) ## Summary Part of https://github.com/elastic/kibana/issues/204761 . This package is used by every app and I thought it is worth adding it to the shared bundle. Especially since it is already part of Bazel. --- packages/kbn-ui-shared-deps-src/BUILD.bazel | 1 + packages/kbn-ui-shared-deps-src/src/definitions.js | 1 + packages/kbn-ui-shared-deps-src/src/entry.js | 1 + 3 files changed, 3 insertions(+) diff --git a/packages/kbn-ui-shared-deps-src/BUILD.bazel b/packages/kbn-ui-shared-deps-src/BUILD.bazel index 12cb35139759b..129514ee1e992 100644 --- a/packages/kbn-ui-shared-deps-src/BUILD.bazel +++ b/packages/kbn-ui-shared-deps-src/BUILD.bazel @@ -43,6 +43,7 @@ webpack_cli( "//packages/react/kibana_context/root", "//packages/react/kibana_context/render", "//packages/react/kibana_context/theme", + "//packages/shared-ux/router/impl:shared-ux-router", ], output_dir = True, args = [ diff --git a/packages/kbn-ui-shared-deps-src/src/definitions.js b/packages/kbn-ui-shared-deps-src/src/definitions.js index 90aa4127f1c86..4c6a66de525c3 100644 --- a/packages/kbn-ui-shared-deps-src/src/definitions.js +++ b/packages/kbn-ui-shared-deps-src/src/definitions.js @@ -110,6 +110,7 @@ const externals = { '@kbn/react-kibana-context-root': '__kbnSharedDeps__.KbnReactKibanaContextRoot', '@kbn/react-kibana-context-render': '__kbnSharedDeps__.KbnReactKibanaContextRender', '@kbn/react-kibana-context-theme': '__kbnSharedDeps__.KbnReactKibanaContextTheme', + '@kbn/shared-ux-router': '__kbnSharedDeps__.KbnSharedUxRouter', }; 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 bd0e8ae2efee1..8653fe4890809 100644 --- a/packages/kbn-ui-shared-deps-src/src/entry.js +++ b/packages/kbn-ui-shared-deps-src/src/entry.js @@ -83,3 +83,4 @@ export const KbnReactKibanaContextCommon = require('@kbn/react-kibana-context-co export const KbnReactKibanaContextRoot = require('@kbn/react-kibana-context-root'); export const KbnReactKibanaContextRender = require('@kbn/react-kibana-context-render'); export const KbnReactKibanaContextTheme = require('@kbn/react-kibana-context-theme'); +export const KbnSharedUxRouter = require('@kbn/shared-ux-router');