-
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
[babel] ensure TS preset runs before anything else #119107
Conversation
c625624
to
eb1d67a
Compare
dd109a5
to
d5cfed8
Compare
d5cfed8
to
3cf65f9
Compare
Pinging @elastic/kibana-operations (Team:Operations) |
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.
Security unit test changes LGTM. We should really remove these inline snapshots 🙈
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.
Stack management changes LGTM 👍
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
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.
Presentation team changes LGTM! Nice to see the viewport type error which has been bugging me locally hopefully getting resolved!
Co-authored-by: Kibana Machine <[email protected]>
💔 Backport failed
Successful backport PRs will be merged automatically after passing CI. To backport manually run: |
Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Spencer <[email protected]>
Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # packages/kbn-storybook/src/webpack.config.ts # src/plugins/dashboard/public/application/embeddable/viewport/dashboard_viewport.tsx
Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # packages/kbn-storybook/src/webpack.config.ts # src/plugins/dashboard/public/application/embeddable/viewport/dashboard_viewport.tsx
Co-authored-by: Kibana Machine <[email protected]>
Fixes #118926
In order to support
declare
class properties the@babel/preset-typescript
config needs to be executed first so that it can modify the AST for class properties before any other babel plugins. This required adopting new TS semantics around class property initializers (handled in #119130, #119227 and #119252) as well as upgrading storybook (handled in #119498) so that we can have the same support in storybooks unique babel config.This also leads to the order of properties on objects created via classes being subtly different, which is unfortunate but it doesn't seem like we are depending on that anywhere.
As you can see in https://github.com/spalger/kibana/blob/implement/declare-support-ts/src/plugins/dashboard/public/application/embeddable/viewport/dashboard_viewport.tsx#L35 this is now functioning as of this PR.