-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Upgrade EUI to 11.0.1; support dynamic import() calls in UI code + eui #36316
Conversation
💔 Build Failed |
jenkins test this |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
jenkins test this |
💔 Build Failed |
💔 Build Failed |
jenkins test this |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
jenkins test this |
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
with all tests happy, this is now ready for review /me wipes sweat from brow |
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.
LGTM for babel/jest changes
plugins: [ | ||
// enables jest to parse and execute dynamic import() calls | ||
'@babel/plugin-syntax-dynamic-import', | ||
'dynamic-import-node' |
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.
I don't hate with this, but I would really appreciate not needing to build EUI when running our tests. Ideally EUI can ship with a commonjs version in the future that applies this plugin to rewrite the dynamic imports with static ones, then we can use jest's moduleNameMapper
config to rewrite @elastic/eui(/.*)?
to <rootDir>/node_modules/@elastic/eui/commonjs$1
.
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.
Sounds good to me!
💚 Build Succeeded |
elastic#36316) * Upgrade EUI to 11.0.1; support dynamic import() calls in UI code + eui * update snaps * Clicking on the svg itself once loaded * updated snaps * update icon in snapshots * Fix snapshot
Summary
import()
calls to jest's babel configurationnode_modules/@elastic/eui
Because of the widespread presence/usage of EuiIcon and the impact this most likely has on active PRs, after approvals I will merge master into this branch, re-update and check snapshots, and then merge.
EUI Changelog
11.0.1
Bug fixes
EuiIconTip
's typescript definition (#1934)EuiIcon
component ability to handletype
prop updates (#1935)11.0.0
EuiIcon
(#1924)Bug fixes
Breaking changes
EuiIcon
icon loading into dynamic imports (#1924)Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support- [ ] Documentation was added for features that require explanation or tutorials- [ ] This was checked for keyboard-only and screenreader accessibilityFor maintainers
- [ ] This includes a feature addition or change that requires a release note and was labeled appropriately