Skip to content

Commit

Permalink
🏗 Partial updates for core devDependencies (#39768)
Browse files Browse the repository at this point in the history
* Partial updates for core devDependencies

* Reduce `terser` back to last-known version that doesn't increase the bundle size

* Reduce `terser` back to current version
  • Loading branch information
danielrozenberg authored Jan 26, 2024
1 parent 74f443b commit 3dcace4
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 239 deletions.
2 changes: 1 addition & 1 deletion build-system/tasks/check-sourcemaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const argv = require('minimist')(process.argv.slice(2));
const fs = require('fs');
const {cyan, green, red} = require('kleur/colors');
const {decode} = require('sourcemap-codec');
const {decode} = require('@jridgewell/sourcemap-codec');
const {execOrDie} = require('../common/exec');
const {log} = require('../common/logging');

Expand Down
3 changes: 2 additions & 1 deletion build-system/tasks/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,11 +476,12 @@ const mangleIdentifier = {
*/
async function minify(code, options = {}) {
/* eslint-disable local/camelcase */
/** @type {terser.MinifyOptions} */
const terserOptions = {
mangle: {
properties: {
regex: '_AMP_PRIVATE_$',
keep_quoted: /** @type {'strict'} */ ('strict'),
keep_quoted: 'strict',
},
},
compress: {
Expand Down
Loading

0 comments on commit 3dcace4

Please sign in to comment.