Changeset 51212
- Timestamp:
- 06/23/2021 12:04:47 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/package.json
r51199 r51212 148 148 "react": "16.13.1", 149 149 "react-dom": "16.13.1", 150 "regenerator-runtime": "0.13.7", 150 151 "twemoji": "13.1.0", 151 152 "underscore": "1.13.1", -
trunk/src/wp-includes/script-loader.php
r51211 r51212 81 81 82 82 $vendor_scripts = array( 83 'react' => array( 'wp-polyfill' ), 84 'react-dom' => array( 'react' ), 83 'react' => array( 'wp-polyfill' ), 84 'react-dom' => array( 'react' ), 85 'regenerator-runtime', 85 86 'moment', 86 87 'lodash', … … 92 93 'wp-polyfill-element-closest', 93 94 'wp-polyfill-object-fit', 94 'wp-polyfill' ,95 'wp-polyfill' => array( 'regenerator-runtime' ), 95 96 ); 96 97 … … 98 99 'react' => '16.13.1', 99 100 'react-dom' => '16.13.1', 101 'regenerator-runtime' => '0.13.7', 100 102 'moment' => '2.29.1', 101 103 'lodash' => '4.17.19', … … 107 109 'wp-polyfill-element-closest' => '2.0.2', 108 110 'wp-polyfill-object-fit' => '2.3.5', 109 'wp-polyfill' => ' 7.4.4',111 'wp-polyfill' => '3.15.0', 110 112 ); 111 113 … … 121 123 $scripts->add( $handle, $path, $dependencies, $version, 1 ); 122 124 } 123 124 $scripts->add( 'wp-polyfill', null, array( 'wp-polyfill' ) );125 125 126 126 did_action( 'init' ) && $scripts->add_inline_script( 'lodash', 'window.lodash = _.noConflict();' ); -
trunk/tests/phpunit/tests/dependencies/scripts.php
r50934 r51212 724 724 $ver = get_bloginfo( 'version' ); 725 725 $suffix = wp_scripts_get_suffix(); 726 $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate, wp-polyfill,wp-dom-ready,wp-hooks&ver={$ver}'></script>\n";726 $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-dom-ready,wp-hooks&ver={$ver}'></script>\n"; 727 727 $expected .= "<script type='text/javascript' id='test-example-js-before'>\nconsole.log(\"before\");\n</script>\n"; 728 728 $expected .= "<script type='text/javascript' src='http://example.com' id='test-example-js'></script>\n"; -
trunk/tools/webpack/packages.js
r51149 r51212 85 85 'react.js': 'react/umd/react.development.js', 86 86 'react-dom.js': 'react-dom/umd/react-dom.development.js', 87 'regenerator-runtime.js': 'regenerator-runtime/runtime.js', 87 88 }; 88 89 … … 99 100 100 101 const minifyVendors = { 102 'regenerator-runtime.min.js': 'regenerator-runtime/runtime.js', 101 103 'wp-polyfill-fetch.min.js': 'whatwg-fetch/dist/fetch.umd.js', 102 104 'wp-polyfill-element-closest.min.js': 'element-closest/element-closest.js',
Note: See TracChangeset
for help on using the changeset viewer.