Skip to content

Commit

Permalink
Merge pull request #777 from GoogleChromeLabs/fix/missing-sourcemaps
Browse files Browse the repository at this point in the history
Rename sourcemap files when renaming .mjs to .js
  • Loading branch information
westonruter authored Apr 29, 2022
2 parents 949d03d + 800a6ec commit 7ade9ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ module.exports = function (grunt) {
'for mjs in wp-includes/js/workbox*/*.mjs; do ' +
'sed "s/\\.mjs/.js/g" "$mjs" > "${mjs%mjs}js";' +
'rm $mjs;' +
'if [ -e $mjs.map ]; then mv $mjs.map "${mjs%mjs}js.map"; fi;' +
'done;',
},
create_build_zip: {
Expand Down

0 comments on commit 7ade9ff

Please sign in to comment.