Skip to content

Build: Share babel config for client and extensions #11811

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

Merged
merged 3 commits into from
Apr 3, 2019
Merged

Conversation

sirreal
Copy link
Member

@sirreal sirreal commented Apr 2, 2019

Use the same babel config for the dashboard and for Gutenberg extensions.

The entire config will likely be replaced soon with a calypso-build provided config.

These specific transforms are removed:

It's unclear why they may have been necessary historically.

Required for #11812

Testing

  • No changes to the extensions (block-editor and frontend view scripts). Do they still use external wp.element.createElement for JSX?
  • Jetpack dashboard and settings continue to work as expected (no regressions). Test ie11.

@matticbot
Copy link
Contributor

Caution: This PR has changes that must be merged to WordPress.com
Hello sirreal! These changes need to be synced to WordPress.com - If you 're an a11n, please commandeer, review, and approve D26314-code before merging this PR. Thank you!

@sirreal sirreal added [Status] In Progress Admin Page React-powered dashboard under the Jetpack menu [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack labels Apr 2, 2019
@sirreal sirreal self-assigned this Apr 2, 2019
@matticbot
Copy link
Contributor

sirreal, Your synced wpcom patch D26314-code has been updated.

@sirreal sirreal marked this pull request as ready for review April 2, 2019 13:09
@sirreal sirreal requested a review from a team April 2, 2019 13:09
@sirreal sirreal force-pushed the update/share-babel branch from 8658ba0 to f6df322 Compare April 2, 2019 13:18
@jetpackbot

This comment has been minimized.

@kraftbj kraftbj added this to the 7.3 milestone Apr 2, 2019
@sirreal sirreal added [Status] Needs Review This PR is ready for review. and removed [Status] In Progress labels Apr 2, 2019
@sirreal sirreal requested a review from a team April 2, 2019 14:52
Copy link
Member

@simison simison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My Babel knowledge isn't very deep but code looks good to me apart from open question about some plugins.

Builds blocks and admin panel well. 👍

@sirreal
Copy link
Member Author

sirreal commented Apr 3, 2019

Summarizing discussion: this is safe and ready 😎

Copy link
Contributor

@kraftbj kraftbj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with IE 11 via a Windows 8.1 VM, no regressions. Merge when you're ready.

@kraftbj kraftbj added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review This PR is ready for review. labels Apr 3, 2019
@simison simison merged commit ae05715 into master Apr 3, 2019
@matticbot matticbot added [Status] Needs Changelog and removed [Status] Ready to Merge Go ahead, you can push that green button! labels Apr 3, 2019
@simison simison deleted the update/share-babel branch April 3, 2019 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Page React-powered dashboard under the Jetpack menu [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack Touches WP.com Files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants