Skip to content

Commit 4522c52

Browse files
committed
Ensure all .min files are minified as expected.
1 parent 0c092b5 commit 4522c52

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

Gruntfile.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ module.exports = function(grunt) {
424424
[ WORKING_DIR + 'wp-includes/js/dist/vendor/wp-polyfill.min.js' ]: [ './node_modules/@wordpress/babel-preset-default/build/polyfill.min.js' ],
425425
// polyfill-library (DOMRect)
426426
[ WORKING_DIR + 'wp-includes/js/dist/vendor/wp-polyfill-dom-rect.js' ]: [ './node_modules/polyfill-library/polyfills/__dist/DOMRect/raw.js' ],
427-
[ WORKING_DIR + 'wp-includes/js/dist/vendor/wp-polyfill-dom-rect.min.js' ]: [ './node_modules/polyfill-library/polyfills/__dist/DOMRect/raw.js' ],
427+
[ WORKING_DIR + 'wp-includes/js/dist/vendor/wp-polyfill-dom-rect.min.js' ]: [ './node_modules/polyfill-library/polyfills/__dist/DOMRect/min.js' ],
428428
// element-closest
429429
[ WORKING_DIR + 'wp-includes/js/dist/vendor/wp-polyfill-element-closest.js' ]: [ './node_modules/element-closest/browser.js' ],
430430
[ WORKING_DIR + 'wp-includes/js/dist/vendor/wp-polyfill-element-closest.min.js' ]: [ './node_modules/element-closest/browser.js' ],
@@ -439,7 +439,7 @@ module.exports = function(grunt) {
439439
[ WORKING_DIR + 'wp-includes/js/dist/vendor/wp-polyfill-inert.min.js' ]: [ './node_modules/wicg-inert/dist/inert.min.js' ],
440440
// polyfill-library (Node.prototype.contains)
441441
[ WORKING_DIR + 'wp-includes/js/dist/vendor/wp-polyfill-node-contains.js' ]: [ './node_modules/polyfill-library/polyfills/__dist/Node.prototype.contains/raw.js' ],
442-
[ WORKING_DIR + 'wp-includes/js/dist/vendor/wp-polyfill-node-contains.min.js' ]: [ './node_modules/polyfill-library/polyfills/__dist/Node.prototype.contains/raw.js' ],
442+
[ WORKING_DIR + 'wp-includes/js/dist/vendor/wp-polyfill-node-contains.min.js' ]: [ './node_modules/polyfill-library/polyfills/__dist/Node.prototype.contains/min.js' ],
443443
// objectFitPolyfill
444444
[ WORKING_DIR + 'wp-includes/js/dist/vendor/wp-polyfill-object-fit.js' ]: [ './node_modules/objectFitPolyfill/src/objectFitPolyfill.js' ],
445445
[ WORKING_DIR + 'wp-includes/js/dist/vendor/wp-polyfill-object-fit.min.js' ]: [ './node_modules/objectFitPolyfill/dist/objectFitPolyfill.min.js' ],
@@ -1156,6 +1156,14 @@ module.exports = function(grunt) {
11561156
src: WORKING_DIR + 'wp-includes/js/dist/vendor/moment.js',
11571157
dest: WORKING_DIR + 'wp-includes/js/dist/vendor/moment.min.js'
11581158
},
1159+
'regenerator-runtime': {
1160+
src: WORKING_DIR + 'wp-includes/js/dist/vendor/regenerator-runtime.js',
1161+
dest: WORKING_DIR + 'wp-includes/js/dist/vendor/regenerator-runtime.min.js'
1162+
},
1163+
'wp-polyfill-fetch': {
1164+
src: WORKING_DIR + 'wp-includes/js/dist/vendor/wp-polyfill-fetch.js',
1165+
dest: WORKING_DIR + 'wp-includes/js/dist/vendor/wp-polyfill-fetch.min.js'
1166+
},
11591167
dynamic: {
11601168
expand: true,
11611169
cwd: WORKING_DIR,
@@ -1712,6 +1720,8 @@ module.exports = function(grunt) {
17121720
'uglify:imgareaselect',
17131721
'uglify:jqueryform',
17141722
'uglify:moment',
1723+
'uglify:regenerator-runtime',
1724+
'uglify:wp-polyfill-fetch',
17151725
'qunit:compiled'
17161726
] );
17171727

@@ -1854,7 +1864,9 @@ module.exports = function(grunt) {
18541864
'uglify:jquery-ui',
18551865
'uglify:imgareaselect',
18561866
'uglify:jqueryform',
1857-
'uglify:moment'
1867+
'uglify:moment',
1868+
'uglify:regenerator-runtime',
1869+
'uglify:wp-polyfill-fetch'
18581870
] );
18591871

18601872
grunt.registerTask( 'build:codemirror', [

0 commit comments

Comments
 (0)