Make WordPress Core


Ignore:
Timestamp:
01/31/2024 08:29:18 AM (4 months ago)
Author:
gziolo
Message:

Script Modules API: Add import map polyfill for older browsers

Syncs the changes from https://github.com/WordPress/gutenberg/pull/58263. Adds a polyfill to make import maps compatible with unsported browsers (https://caniuse.com/import-maps).

Fixes #60348.
Props cbravobernal, jorbin, luisherranz, jonsurrell.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r57377 r57492  
    9797        'wp-polyfill-fetch',
    9898        'wp-polyfill-formdata',
     99        'wp-polyfill-importmap',
    99100        'wp-polyfill-node-contains',
    100101        'wp-polyfill-url',
     
    121122        'wp-polyfill-inert'           => '3.1.2',
    122123        'wp-polyfill'                 => '3.15.0',
     124        'wp-polyfill-importmap'       => '1.8.2',
    123125    );
    124126
Note: See TracChangeset for help on using the changeset viewer.