-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move node-libs-browser
to ui-shared-deps-npm
#130877
Move node-libs-browser
to ui-shared-deps-npm
#130877
Conversation
Nice, we have How do you feel about copying that script and doing something similar for these helpers? Or maybe just extending that script to look for both types? |
I'd also be happy to help you resolve the bazel issue you're seeing if you think that we can get another lib in there. |
@elasticmachine merge upstream |
…node-libs-browser
@spalger I just added the new script to help us audit the polyfills in use in the future. I noticed that my manual audit also included some async-loaded ones. So I removed them from the shared deps. |
💚 Build SucceededMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
This is a test to check the performance implications and bundle size improvements of moving the
node-libs-browser
polyfill to the@kbn/ui-shared-deps-npm
library.Ideally, we shouldn't need it at all. But I noticed it's widely used across multiple plugins in Kibana, so we'd rather try to minimize its impact.
Related to #88678.
UPDATE: importing
node-libs-browser
is too much. An audit of our bundles highlighted that we only need it for these modules:buffer
,punycode
,util
,timers-browserify
, 'assert'.NOTE: I'm not adding 'assert' nor
timers-browserify
because they are used only in the async chunks.For maintainers