Skip to content

Commit d62a10f

Browse files
gabrielcsapojantimon
authored andcommitted
[chore] upgrades [email protected] -> 6.0.2
1 parent 2f5de7a commit d62a10f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1041,12 +1041,12 @@ function hookIntoCompiler (compiler, options, plugin) {
10411041
*
10421042
* @param {string} html
10431043
*/
1044-
function minifyHtml (html) {
1044+
async function minifyHtml (html) {
10451045
if (typeof options.minify !== 'object') {
10461046
return html;
10471047
}
10481048
try {
1049-
return require('html-minifier-terser').minify(html, options.minify);
1049+
return await require('html-minifier-terser').minify(html, options.minify);
10501050
} catch (e) {
10511051
const isParseError = String(e.message).indexOf('Parse Error') === 0;
10521052
if (isParseError) {

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
"webpack-recompilation-simulator": "3.2.0"
5050
},
5151
"dependencies": {
52-
"@types/html-minifier-terser": "^5.0.0",
53-
"html-minifier-terser": "^5.0.1",
52+
"@types/html-minifier-terser": "^6.0.0",
53+
"html-minifier-terser": "^6.0.2",
5454
"lodash": "^4.17.21",
5555
"pretty-error": "^3.0.4",
5656
"tapable": "^2.0.0"

0 commit comments

Comments
 (0)