Skip to content

[9.0] chore(NA): updating used polyfills using 3rd party library (#218020)#219799

Merged
mistic merged 2 commits intoelastic:9.0from
mistic:backport/9.0/pr-218020
May 1, 2025
Merged

[9.0] chore(NA): updating used polyfills using 3rd party library (#218020)#219799
mistic merged 2 commits intoelastic:9.0from
mistic:backport/9.0/pr-218020

Conversation

@mistic
Copy link
Contributor

@mistic mistic commented Apr 30, 2025

Backport

This will backport the following commits from main to 9.0:

Questions ?

Please refer to the Backport tool documentation

…18020)

Closes elastic/kibana-operations#267

This PR is a follow up from the webpack v5 upgrade which makes sure we
stop using the old non maintained webpack v4 polyfills library and use
instead a new supported library called `node-stdlib-browser`.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit aac2d47)

# Conflicts:
#	packages/kbn-optimizer/src/worker/webpack.config.ts
#	src/platform/packages/private/kbn-ui-shared-deps-npm/webpack.config.js
#	yarn.lock
@mistic mistic requested a review from kibanamachine as a code owner April 30, 2025 21:05
@mistic mistic added the backport This PR is a backport of another PR label Apr 30, 2025
@mistic mistic enabled auto-merge (squash) April 30, 2025 21:05
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #11 / ObservableActionsPopoverButton clicking the button opens the popover

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
apm 1649 1646 -3
automaticImport 734 729 -5
core 397 391 -6
dataUsage 120 117 -3
enterpriseSearch 1329 1270 -59
fleet 1193 1189 -4
graph 269 263 -6
infra 1279 1276 -3
kibanaUtils 167 161 -6
maps 1320 1311 -9
mapsEms 52 46 -6
ml 2147 2141 -6
observabilityOnboarding 230 229 -1
profiling 291 285 -6
share 85 79 -6
uptime 569 566 -3
visTypeTimeseries 496 490 -6
total -138

Async chunks

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

id before after diff
apm 2.4MB 2.4MB -9.9KB
automaticImport 1.1MB 1.1MB -27.0KB
cases 512.2KB 512.3KB +29.0B
console 185.7KB 185.1KB -621.0B
dataUsage 260.2KB 244.1KB -16.1KB
enterpriseSearch 1.3MB 1.3MB -43.8KB
fleet 1.7MB 1.6MB -23.5KB
graph 393.3KB 382.4KB -10.9KB
infra 1.1MB 1.1MB -9.5KB
lens 1.5MB 1.5MB -2.0B
maps 2.9MB 2.8MB -25.4KB
mapsEms 86.4KB 75.3KB -11.0KB
ml 4.4MB 4.4MB -11.0KB
observabilityOnboarding 262.1KB 237.6KB -24.5KB
profiling 401.1KB 390.1KB -11.0KB
securitySolution 8.8MB 8.8MB -2.0B
slo 760.9KB 762.7KB +1.8KB
uptime 413.9KB 404.0KB -9.9KB
visTypeTimeseries 484.5KB 473.7KB -10.8KB
total -243.3KB

Page load bundle

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

id before after diff
apm 35.7KB 35.6KB -26.0B
console 25.9KB 27.6KB +1.7KB
core 436.2KB 425.1KB -11.1KB
enterpriseSearch 38.8KB 38.7KB -91.0B
fleet 155.4KB 155.4KB -2.0B
graph 8.7KB 8.6KB -74.0B
infra 49.6KB 49.5KB -97.0B
kbnUiSharedDeps-npmDll 6.0MB 6.1MB +87.4KB
kbnUiSharedDeps-srcJs 3.5MB 3.5MB -10.9KB
kibanaUtils 67.0KB 56.0KB -11.0KB
maps 47.3KB 47.2KB -74.0B
mapsEms 6.0KB 6.0KB -94.0B
profiling 18.1KB 18.0KB -79.0B
share 57.5KB 46.5KB -10.9KB
uptime 22.5KB 22.4KB -105.0B
urlForwarding 4.8KB 6.5KB +1.7KB
visTypeTimeseries 17.6KB 17.5KB -89.0B
visTypeVega 33.8KB 33.2KB -621.0B
total +45.5KB
Unknown metric groups

async chunk count

id before after diff
infra 29 28 -1

@mistic mistic disabled auto-merge May 1, 2025 03:51
@mistic mistic merged commit 9dd5014 into elastic:9.0 May 1, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants