mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
## Summary Add the `sideEffects` meta to packages without side effects to optimize tree-shaking on browser-side bundles. Notes: - it mostly impacts the `securitySolution` app (almost 2mb reduction) - it's not always beneficial for all apps, some apps gain some weight, likely related to the way webpack optimizes the chunks, but I feel like it's still overall beneficial (don't hesitate to say if you think otherwise) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> |
||
---|---|---|
.. | ||
src | ||
index.ts | ||
jest.config.js | ||
kibana.jsonc | ||
package.json | ||
README.md | ||
tsconfig.json |
kbn-securitysolution-io-ts-utils
Very small set of utilities for io-ts which we use across plugins within security solutions such as securitysolution, lists, cases, etc... This folder should remain small and concise since it is pulled into front end and the more files we add the more weight will be added to all of the plugins. Also, any new dependencies added to this will add weight here and the other plugins, so be careful of what is added here.
You might consider making another package instead and putting a dependency on this one if needed, instead.
Related packages are
- kbn-securitysolution-io-ts-alerting-types
- kbn-securitysolution-io-ts-list-types
- kbn-securitysolution-io-ts-types