From 8fad82a2d6f06f168a6792b3b8acd35ca138d2bc Mon Sep 17 00:00:00 2001 From: desrosj Date: Mon, 14 Jun 2021 23:18:11 +0000 Subject: [PATCH] Build/Test Tools: Replace the deprecated `@babel/polyfill`. This replaces the dependency of the deprecated `@babel/polyfill` package with the `core-js` package through `@wordpress/babel-preset-default`. Previously, the file consisted of a generalized group of polyfills, and not all of them were required. This change allows the contents of this file to be built according to the exact needs as dictated by the `@wordpress/babel-preset-default` package, which takes into account the current browser support. Props gziolo, youknowriad. Fixes #52941. Built from https://develop.svn.wordpress.org/trunk@51146 git-svn-id: http://core.svn.wordpress.org/trunk@50755 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/dist/vendor/wp-polyfill.js | 8680 ++++------------- wp-includes/js/dist/vendor/wp-polyfill.min.js | 8 +- wp-includes/version.php | 2 +- 3 files changed, 1667 insertions(+), 7023 deletions(-) diff --git a/wp-includes/js/dist/vendor/wp-polyfill.js b/wp-includes/js/dist/vendor/wp-polyfill.js index ed6d153fd1..34a6b15c51 100644 --- a/wp-includes/js/dist/vendor/wp-polyfill.js +++ b/wp-includes/js/dist/vendor/wp-polyfill.js @@ -1,262 +1,1402 @@ -(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i