Skip to content

Commit

Permalink
fix(NA): exposing ui paths from dll
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic committed Nov 27, 2024
1 parent 9afbba8 commit c22ba02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/kbn-ui-shared-deps-npm/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ module.exports = (_, argv) => {
resolve: {
alias: {
'@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',
moment: MOMENT_SRC,
// NOTE: Used to include react profiling on bundles
// https://gist.github.com/bvaughn/25e6233aeb1b4f0cdb8d8366e54a3977#webpack-4
Expand Down
4 changes: 4 additions & 0 deletions packages/kbn-ui-shared-deps-src/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ module.exports = {
extensions: ['.js', '.ts', '.tsx'],
alias: {
'@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',
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 c22ba02

Please sign in to comment.