Repository navigation
Build-specific babel config files - #3911
Conversation
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3911/ |
Each of those is 🚀 |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3911/ |
chandlerprall
left a comment
There was a problem hiding this comment.
Changes LGTM
- ran all unit tests
yarn build& spot checked output, confirmed removal of docgen entries (esdir went from 8.1MB->5.9MB, 2.2MB reduction)- packed the local build & tested it installed in a CRA app
- confirmed docgen info is still present & rendered in docs (dev server & docs build)
We should look into tightening the browsers env target to get more modern support like const/let in the output, but that's not blocking for this.
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3911/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3911/ |
Summary
Resolves #3801 by reducing the scope of the root
.babelrc.jsfile and creating:scripts/jest/.babelrc.jsby extension of root config; no longer does full browser transformssrc-docs/.babelrc.jsby modification of root config; now the only build that runs react-docgen-typescriptAdditional changes:
Checklist
- [ ] Check against all themes for compatibility in both light and dark modes- [ ] Checked in mobile- [ ] Checked in Chrome, Safari, Edge, and Firefox- [ ] Props have proper autodocs- [ ] Added documentation- [ ] Checked Code Sandbox works for the any docs examples- [ ] Added or updated jest tests- [ ] Checked for accessibility including keyboard-only and screenreader modes