kibana/packages/kbn-securitysolution-io-ts-utils
Pierre Gayvallet 02bafbdf92
flag packages without side effects (#173351)
## 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>
2023-12-19 02:46:39 -07:00
..
src [Security Solution] Explicit request and response schemas for rules management endpoints (#162324) 2023-07-26 18:00:55 +02:00
index.ts chore(NA): remove src folder requirement from packages (part 2) (#138476) 2022-08-30 15:57:35 +01:00
jest.config.js
kibana.jsonc [Security Solution] Clean up CODEOWNERS and other files for the Detection Engine team (#159729) 2023-06-14 10:39:50 -07:00
package.json flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
README.md [Security Solutions] Breaks down the io-ts packages to decrease plugin size (#100058) 2021-05-13 15:36:06 -06:00
tsconfig.json Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00

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