Code-split kibanaReact & kibanaUtils#78140
Conversation
streamich
left a comment
There was a problem hiding this comment.
Code LGTM.
By any chance do you have handy a screenshot of bundle analyzer output after this change?
|
@streamich , after the changes: KibanaReactKibanaUtils |
|
Pinging @elastic/kibana-app-arch (Team:AppArch) |
There was a problem hiding this comment.
I struggled with making this test work with enzyme for quite a while. Ended up with re-imlementing it with simpler @testing-library
6630492 to
3255005
Compare
| onFocus={[Function]} | ||
| > | ||
| <div | ||
| className="react-monaco-editor-container" |
There was a problem hiding this comment.
🤷♂️ this is autogenerated test. Didn't find a way how to wait for editor here.
timroes
left a comment
There was a problem hiding this comment.
Only looked at Kibana App code. Code seems good to me
crob611
left a comment
There was a problem hiding this comment.
Code looks good to me but one little bit that needs to be cleaned up before merging though. See below 👇
💚 Build SucceededBuild metricsasync chunks size
page load bundle size
distributable file count
History
To update your PR or re-run it, just comment with: |


Summary
This addresses most heavy things in
kibanaReact&kibanaUtils:Lodash imports: (I know that there are parallel efforts on addressing- reverted this because of: [shared-ui-deps] use a single global version of lodash #78100lodashglobally, but I was not sure how far those away, so decided to clean this up locally)Notes:
enzymeis pretty ugly with suspense. After fighting it for sometime I re-implemented failing tests withtesting-library