-
Notifications
You must be signed in to change notification settings - Fork 843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM
- ran all unit tests
yarn build
& spot checked output, confirmed removal of docgen entries (es
dir 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.js
file and creating:scripts/jest/.babelrc.js
by extension of root config; no longer does full browser transformssrc-docs/.babelrc.js
by 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