mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 01:39:37 +01:00
c54b44e75a
In [51146], the `core-js` package replaced the deprecated `@babel//polyfill` one. The `core-js` package builds `wp-polyfill` from a configuration provided by `@wordpress/babel-preset-default` instead of copying a one size fits all polyfill. That change caused an issue where plugins and themes relying on the `regenerator-runtime` script being included in the `wp-polyfill.js` file encountering fatal JavaScript errors. This adds the `regenerator-runtime` package to Core and registers it as a dependency for `wp-polyfill`. While Core does not require `regenerator-runtime`, it will allow for a smoother transition to using `core-js`. This dependency will be removed in a future version of WordPress, so developers are encouraged to add `regenerator-runtime` as a dependency for any custom script that requires it. Follow up to [51146]. Props gziolo, herregroen, jeherve, hellofromtonya, peterwilsoncc. Fixes #52941. Built from https://develop.svn.wordpress.org/trunk@51212 git-svn-id: http://core.svn.wordpress.org/trunk@50821 1a063a9b-81f0-0310-95a4-ce76da25c4cd |
||
---|---|---|
.. | ||
lodash.js | ||
lodash.min.js | ||
moment.js | ||
moment.min.js | ||
react-dom.js | ||
react-dom.min.js | ||
react.js | ||
react.min.js | ||
regenerator-runtime.js | ||
regenerator-runtime.min.js | ||
wp-polyfill-dom-rect.js | ||
wp-polyfill-dom-rect.min.js | ||
wp-polyfill-element-closest.js | ||
wp-polyfill-element-closest.min.js | ||
wp-polyfill-fetch.js | ||
wp-polyfill-fetch.min.js | ||
wp-polyfill-formdata.js | ||
wp-polyfill-formdata.min.js | ||
wp-polyfill-node-contains.js | ||
wp-polyfill-node-contains.min.js | ||
wp-polyfill-object-fit.js | ||
wp-polyfill-object-fit.min.js | ||
wp-polyfill-url.js | ||
wp-polyfill-url.min.js | ||
wp-polyfill.js | ||
wp-polyfill.min.js |