diff --git a/index.js b/index.js index b82f6c52..4276e8ed 100644 --- a/index.js +++ b/index.js @@ -1046,7 +1046,7 @@ function hookIntoCompiler (compiler, options, plugin) { return html; } try { - return await require('html-minifier-terser').minify(html, options.minify); + return require('html-minifier-terser').minify(html, options.minify); } catch (e) { const isParseError = String(e.message).indexOf('Parse Error') === 0; if (isParseError) {