From e38ac97683664b902f55b3682e3cf8c1136af8bc Mon Sep 17 00:00:00 2001 From: Gabriel Csapo Date: Sat, 9 Oct 2021 10:23:10 -0400 Subject: [PATCH] Update index.js Co-authored-by: Jan Nicklas --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {