Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Resolves #8636
Done:
optimize/lib->lib(for Jest utilities),optimize/es->es(local and prod),test-env(for Jest env). Potentially can removelibin the future when Jest utils are moved to a separate package.Building locally takes < 1s now. Building for production, 1s + our
dtsgenerator.jsthat takes ~29s. Some TS diagnostics and optimization is needed next.To do:
Why are we making this change?
Our building process can take ~2.20m each time we build. When testing something in Kibana, that's rebuilding and repacking, moving to Kibana and bootstrapping (~3m per each change we want to test). Additionally, there's no watch mode, so we need to rebuild EUI on demand. When
eui-theme-*packages change, we need to rebuild ourselves.Screenshots #
Impact to users
🔴 It's a big enough change to warrant breaking changes. Things can work differently to before, considering now we're not using Babel, we're using ESBuild to do all our (com|trans)pilation.
QA
Specific checklist
--declarationsflag--watchflag) when:packages/euipackages/eui-theme-commonpackages/eui-theme-borealisGeneral checklist
@defaultif default values are missing) and playground toggles