Skip to content

Commit

Permalink
Cherry-pick #1104, fixes #1302
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Apr 4, 2024
1 parent d8b6d55 commit ac3f5e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/transforms/compressJavaScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ for (const compressorName of ['uglifyJs', 'terser']) {
text = javaScript.text;
}

const { error, code, map } = compressorModule.minify(text, {
const { error, code, map } = await compressorModule.minify(text, {
sourceMap: { content: sourceMap },
compress: compressorOptions,
mangle: mangleOptions,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"source-map": "~0.6.1",
"specificity": "^0.4.0",
"teepee": "^2.31.1",
"terser": "^4.0.0",
"terser": "^5.30.3",
"urltools": "^0.4.1",
"workbox-build": "^4.3.1"
},
Expand Down

0 comments on commit ac3f5e3

Please sign in to comment.