From ac322e8d7055ae342e93d01125277ab8c05b11e9 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Tue, 30 Mar 2021 14:47:04 +0000 Subject: [PATCH] External Libraries: Update the path to `polyfill-library` files in Webpack. Follow up to [50615]. Props gziolo. Fixes #52854. git-svn-id: https://develop.svn.wordpress.org/trunk@50617 602fd350-edb4-49c9-b593-d223f7449a82 --- tools/webpack/packages.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/webpack/packages.js b/tools/webpack/packages.js index 73b1dc7143..4af71fed24 100644 --- a/tools/webpack/packages.js +++ b/tools/webpack/packages.js @@ -76,9 +76,9 @@ module.exports = function( env = { environment: 'production', watch: false, buil 'wp-polyfill.js': '@babel/polyfill/dist/polyfill.js', 'wp-polyfill-fetch.js': 'whatwg-fetch/dist/fetch.umd.js', 'wp-polyfill-element-closest.js': 'element-closest/element-closest.js', - 'wp-polyfill-node-contains.js': 'polyfill-library/polyfills/Node/prototype/contains/polyfill.js', + 'wp-polyfill-node-contains.js': 'polyfill-library/polyfills/__dist/Node.prototype.contains/raw.js', 'wp-polyfill-url.js': 'core-js-url-browser/url.js', - 'wp-polyfill-dom-rect.js': 'polyfill-library/polyfills/DOMRect/polyfill.js', + 'wp-polyfill-dom-rect.js': 'polyfill-library/polyfills/__dist/DOMRect/raw.js', 'wp-polyfill-formdata.js': 'formdata-polyfill/FormData.js', 'wp-polyfill-object-fit.js': 'objectFitPolyfill/src/objectFitPolyfill.js', 'moment.js': 'moment/moment.js', @@ -100,8 +100,8 @@ module.exports = function( env = { environment: 'production', watch: false, buil const minifyVendors = { 'wp-polyfill-fetch.min.js': 'whatwg-fetch/dist/fetch.umd.js', 'wp-polyfill-element-closest.min.js': 'element-closest/element-closest.js', - 'wp-polyfill-node-contains.min.js': 'polyfill-library/polyfills/Node/prototype/contains/polyfill.js', - 'wp-polyfill-dom-rect.min.js': 'polyfill-library/polyfills/DOMRect/polyfill.js', + 'wp-polyfill-node-contains.min.js': 'polyfill-library/polyfills/__dist/Node.prototype.contains/raw.js', + 'wp-polyfill-dom-rect.min.js': 'polyfill-library/polyfills/__dist/DOMRect/raw.js', }; const dynamicBlockFolders = [