eui icon indicating copy to clipboard operation
eui copied to clipboard

Development- and production-specific builds

Open thompsongl opened this issue 3 years ago • 3 comments
trafficstars

#4548 started the discussion (resounding positive reaction) and #5527 began the exploration, but we want to generate proper builds for development and production environments.

Considerations:

  • kbn-ui-shared-deps
    • Uses the production version (based on process.env) without exception
    • What helpful development features would be lost?
    • Work with Kibana ops to loosen the restrictions
  • Console
    • Deprecation warnings
  • propTypes
    • Removable for prod
    • #4101 points toward improvement for dev
  • babel/runtime
    • Introduces a new [peer]Dep for consumers
    • Require for dev, also?

thompsongl avatar Jan 13 '22 16:01 thompsongl

hey @thompsongl are you also considering targeting the transpilation to ES2020 or ES2021 only code? It looks like that all our supported browsers are supported https://kangax.github.io/compat-table/es2016plus/ This will definitely reduce the bundle size, removing polyfills for spread operators etc WDYT?

markov00 avatar Feb 10 '22 11:02 markov00

are you also considering targeting the transpilation to ES2020 or ES2021 only code?

Yes, we'll evaluate browser support, etc. when making changes 👍

thompsongl avatar Feb 10 '22 16:02 thompsongl

👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

github-actions[bot] avatar Aug 10 '22 00:08 github-actions[bot]