diff --git a/lib/compat.php b/lib/compat.php index 7362ca9b89074..19bb29d5d1566 100644 --- a/lib/compat.php +++ b/lib/compat.php @@ -55,10 +55,12 @@ function gutenberg_add_url_polyfill( $scripts ) { return; } + $suffix = SCRIPT_DEBUG ? '' : '.min'; + gutenberg_register_vendor_script( $scripts, 'wp-polyfill-url', - 'https://unpkg.com/core-js-url-browser@3.6.4/url.min.js', + 'https://unpkg.com/core-js-url-browser@3.6.4/url' . $suffix . '.js', array(), '3.6.4' );