Skip to content

Commit

Permalink
fix(NA): only include some subroutes
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic committed Nov 30, 2024
1 parent d465b46 commit 72b1187
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
8 changes: 4 additions & 4 deletions packages/kbn-ui-shared-deps-npm/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ module.exports = (_, argv) => {
'@elastic/charts',
'@elastic/eui',
'@elastic/eui/optimize/es/components/provider/nested',
'@elastic/eui/optimize/es/services',
'@elastic/eui/optimize/es/services/format',
'@elastic/eui/optimize/es/services/theme/warning',
'@elastic/eui/dist/eui_theme_amsterdam_light.json',
'@elastic/eui/dist/eui_theme_amsterdam_dark.json',
Expand Down Expand Up @@ -143,8 +141,10 @@ module.exports = (_, argv) => {
'@elastic/eui$': '@elastic/eui/optimize/es',
// Exposing other eui subpaths as we want to expose them from the dll.
// We cant just alias everything because we are also importing eui/dist from outside of the dll
'@elastic/eui/lib/services': '@elastic/eui/optimize/es/services',
'@elastic/eui/lib/components': '@elastic/eui/optimize/es/components',
'@elastic/eui/lib/services/theme/warning':
'@elastic/eui/optimize/es/services/theme/warning',
'@elastic/eui/lib/components/provider/nested':
'@elastic/eui/optimize/es/components/provider/nested',
moment: MOMENT_SRC,
// NOTE: Used to include react profiling on bundles
// https://gist.github.com/bvaughn/25e6233aeb1b4f0cdb8d8366e54a3977#webpack-4
Expand Down
2 changes: 0 additions & 2 deletions packages/kbn-ui-shared-deps-src/src/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ const externals = {
'@elastic/eui': '__kbnSharedDeps__.ElasticEui',
'@elastic/eui/lib/components/provider/nested':
'__kbnSharedDeps__.ElasticEuiLibComponentsUseIsNestedEuiProvider',
'@elastic/eui/lib/services': '__kbnSharedDeps__.ElasticEuiLibServices',
'@elastic/eui/lib/services/format': '__kbnSharedDeps__.ElasticEuiLibServicesFormat',
'@elastic/eui/lib/services/theme/warning': '__kbnSharedDeps__.ElasticEuiLibServicesThemeWarning',
'@elastic/eui-theme-borealis': '__kbnSharedDeps__.ElasticEuiThemeBorealis',

Expand Down
4 changes: 1 addition & 3 deletions packages/kbn-ui-shared-deps-src/src/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@ export const Rxjs = require('rxjs');
export const ElasticNumeral = require('@elastic/numeral');
export const ElasticCharts = require('@elastic/charts');
export const ElasticEui = require('@elastic/eui');
export const ElasticEuiThemeBorealis = require('@elastic/eui-theme-borealis');
export const ElasticEuiLibComponentsUseIsNestedEuiProvider = require('@elastic/eui/optimize/es/components/provider/nested');
export const ElasticEuiLibServices = require('@elastic/eui/optimize/es/services');
export const ElasticEuiLibServicesFormat = require('@elastic/eui/optimize/es/services/format');
export const ElasticEuiLibServicesThemeWarning = require('@elastic/eui/optimize/es/services/theme/warning');
export const ElasticEuiThemeBorealis = require('@elastic/eui-theme-borealis');
export const KbnDatemath = require('@kbn/datemath');
export const HelloPangeaDnd = require('@hello-pangea/dnd/dist/dnd');
export const ReduxjsToolkit = require('@reduxjs/toolkit');
Expand Down
5 changes: 3 additions & 2 deletions packages/kbn-ui-shared-deps-src/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ module.exports = {
'@elastic/eui$': '@elastic/eui/optimize/es',
// Exposing other eui subpaths as we want to expose them from the dll.
// We cant just alias everything because we are also importing eui/dist from outside of the dll
'@elastic/eui/lib/services': '@elastic/eui/optimize/es/services',
'@elastic/eui/lib/components': '@elastic/eui/optimize/es/components',
'@elastic/eui/lib/services/theme/warning': '@elastic/eui/optimize/es/services/theme/warning',
'@elastic/eui/lib/components/provider/nested':
'@elastic/eui/optimize/es/components/provider/nested',
moment: MOMENT_SRC,
// NOTE: Used to include react profiling on bundles
// https://gist.github.com/bvaughn/25e6233aeb1b4f0cdb8d8366e54a3977#webpack-4
Expand Down

0 comments on commit 72b1187

Please sign in to comment.