Skip to content

Build: Change the source for wp-polyfill#1361

Closed
gziolo wants to merge 2 commits intoWordPress:masterfrom
gziolo:update/babel-polyfill
Closed

Build: Change the source for wp-polyfill#1361
gziolo wants to merge 2 commits intoWordPress:masterfrom
gziolo:update/babel-polyfill

Conversation

@gziolo
Copy link
Copy Markdown
Member

@gziolo gziolo commented Jun 9, 2021

Trac ticket: https://core.trac.wordpress.org/ticket/52941


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@gziolo gziolo requested a review from desrosj June 9, 2021 19:29
@gziolo gziolo self-assigned this Jun 9, 2021
@gziolo gziolo added the dependencies Pull requests that update a dependency file label Jun 9, 2021
@gziolo
Copy link
Copy Markdown
Member Author

gziolo commented Jun 9, 2021

I tested on macOS Big Sur with the latest:

  • Firefox
  • Safari
  • Chrome

Everything works as expected.

@gziolo gziolo requested a review from youknowriad June 9, 2021 19:32
@youknowriad
Copy link
Copy Markdown
Contributor

Looks good, what's the different in terms of Kb?

@gziolo
Copy link
Copy Markdown
Member Author

gziolo commented Jun 11, 2021

When I move to dependencies:

"@wordpress/babel-preset-default": "6.2.0",

I get the following error:

Screen Shot 2021-06-11 at 11 36 42

I'm not sure why it's happening :( Can we keep it as devDependencie?

@youknowriad
Copy link
Copy Markdown
Contributor

I'm not sure why it's happening :( Can we keep it as devDependencie?

the error is weird but yeah we can keep there if it solves it.

Copy link
Copy Markdown
Member

@desrosj desrosj left a comment

Choose a reason for hiding this comment

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

This is looking good to me. Thanks for working on this @gziolo!

pierlon added a commit to ampproject/amp-wp that referenced this pull request Jun 14, 2021
@desrosj
Copy link
Copy Markdown
Member

desrosj commented Jun 14, 2021

Just wanted to record the difference in file size here for historical reference:

Before

Unminified file: 242KB
Minified file: 102KB

After

Unminified file: 53KB
Minified file: 20KB

@desrosj
Copy link
Copy Markdown
Member

desrosj commented Jun 14, 2021

Merged into Core in https://core.trac.wordpress.org/changeset/51146.

@desrosj desrosj closed this Jun 14, 2021
@gziolo gziolo deleted the update/babel-polyfill branch June 15, 2021 06:28
pierlon added a commit to ampproject/amp-wp that referenced this pull request Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants