diff --git a/packages/kbn-ui-shared-deps-npm/webpack.config.js b/packages/kbn-ui-shared-deps-npm/webpack.config.js index 8faf6c0c1ab76..94d292a10cacb 100644 --- a/packages/kbn-ui-shared-deps-npm/webpack.config.js +++ b/packages/kbn-ui-shared-deps-npm/webpack.config.js @@ -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 diff --git a/packages/kbn-ui-shared-deps-src/webpack.config.js b/packages/kbn-ui-shared-deps-src/webpack.config.js index c84c8928d0864..b2226afd9f5bb 100644 --- a/packages/kbn-ui-shared-deps-src/webpack.config.js +++ b/packages/kbn-ui-shared-deps-src/webpack.config.js @@ -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