Skip to content

chore(NA): improve kbn-ui-shared-deps-npm split#114557

Merged
mistic merged 11 commits intoelastic:masterfrom
mistic:improve-kbn-ui-shared-deps-split
Oct 13, 2021
Merged

chore(NA): improve kbn-ui-shared-deps-npm split#114557
mistic merged 11 commits intoelastic:masterfrom
mistic:improve-kbn-ui-shared-deps-split

Conversation

@mistic
Copy link
Contributor

@mistic mistic commented Oct 11, 2021

While working with packages I noticed that our previous kbn-ui-shared-deps split could be improved in a couple of places.

It would be really cool if we can find ways we can lower the build times of those splits in the future, specially the kbn-ui-shared-deps-src as it will compound with the package build trees of a considerable amount of packages.

@mistic mistic added chore Team:Operations Kibana-Operations Team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated - use backport:version if exact versions are needed v7.16.0 labels Oct 11, 2021
@mistic mistic requested a review from spalger October 11, 2021 19:37
const MOMENT_SRC = require.resolve('moment/min/moment-with-locales.js');
const WEBPACK_SRC = require.resolve('webpack');

const REPO_ROOT = Path.resolve(__dirname, '..', '..');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would love if we didn't need to reimplement this anyplace we use it, maybe in the future we could make a dev-path-constants package or something to encapsulate this very unlikely to change state?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 yeah I like the idea! My effort here was only try to decouple @kbn/utils from the @kbn/ui-shared-deps-npm

@mistic
Copy link
Contributor Author

mistic commented Oct 11, 2021

@elasticmachine merge upstream

@mistic
Copy link
Contributor Author

mistic commented Oct 12, 2021

@elasticmachine merge upstream

@mistic mistic marked this pull request as ready for review October 12, 2021 01:57
@mistic mistic requested a review from a team as a code owner October 12, 2021 01:57
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
cloud 12.3KB 12.3KB -1.0B
dataVisualizer 532.9KB 532.9KB +1.0B
discover 327.8KB 327.8KB +1.0B
enterpriseSearch 1.4MB 1.4MB -1.0B
fileUpload 673.4KB 673.4KB -1.0B
graph 403.3KB 403.3KB -1.0B
infra 938.4KB 938.4KB -1.0B
ingestPipelines 453.1KB 453.1KB -1.0B
kibanaReact 203.5KB 203.5KB -2.0B
lists 148.2KB 148.2KB +1.0B
maps 2.7MB 2.7MB -1.0B
mapsEms 174.0KB 174.0KB -1.0B
ml 3.6MB 3.6MB -1.0B
reporting 43.9KB 43.9KB -1.0B
security 514.6KB 514.6KB -1.0B
visDefaultEditor 152.6KB 152.6KB +1.0B
visTypeTimeseries 485.8KB 485.8KB +1.0B
visTypeVega 1.9MB 1.9MB -1.0B
watcher 271.3KB 271.3KB +2.0B
total -7.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
core 300.5KB 300.5KB -1.0B
data 465.1KB 465.1KB +1.0B
fieldFormats 49.0KB 49.0KB -1.0B
fleet 104.7KB 104.7KB -1.0B
infra 90.2KB 90.2KB +1.0B
kbnUiSharedDeps-npmDll 5.1MB 5.1MB -10.0B
kibanaUtils 85.8KB 85.7KB -1.0B
ml 34.3KB 34.3KB +1.0B
observability 34.5KB 34.5KB +1.0B
share 54.0KB 54.0KB -1.0B
total -11.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@mistic
Copy link
Contributor Author

mistic commented Oct 12, 2021

@spalger do you think we can move on this one?

@mistic mistic merged commit ad9c158 into elastic:master Oct 13, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Oct 13, 2021
* chore(NA): remove elastic-datemath from kbn-ui-shared-deps-npm

* chore(NA): remove @kbn deps on kbn ui shared deps npm

* chore(NA): missing peer dep to build kbn ui shared deps npm

* chore(NA): general improvements for kbn ui shared deps npm

* chore(NA): remove min size chunks plugin

* chore(NA): remove split chunks

* chore(NA): improve dep declaring on kbn-ui-shared-deps-src

* chore(NA): remove typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Oct 13, 2021
* chore(NA): remove elastic-datemath from kbn-ui-shared-deps-npm

* chore(NA): remove @kbn deps on kbn ui shared deps npm

* chore(NA): missing peer dep to build kbn ui shared deps npm

* chore(NA): general improvements for kbn ui shared deps npm

* chore(NA): remove min size chunks plugin

* chore(NA): remove split chunks

* chore(NA): improve dep declaring on kbn-ui-shared-deps-src

* chore(NA): remove typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Deprecated - use backport:version if exact versions are needed chore release_note:skip Skip the PR/issue when compiling release notes Team:Operations Kibana-Operations Team v7.16.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants