Skip to content

Commit 9aa6204

Browse files
avivkellerovflowd
andauthored
Update html-minifier.mjs
Co-authored-by: Claudio Wunder <cwunder@gnome.org>
1 parent c42e192 commit 9aa6204

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/html-minifier.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ import { minify } from '@swc/html-wasm';
99
* @param {import('@swc/html-wasm').Options} [options]
1010
*/
1111
export const minifyHTML = async (html, options = {}) =>
12-
(await minify(html, options)).code;
12+
minify(html, options).then(({ code }) => code)

0 commit comments

Comments
 (0)