diff --git a/src/index.ts b/src/index.ts index 68688b4..e4a9395 100644 --- a/src/index.ts +++ b/src/index.ts @@ -130,7 +130,7 @@ function genProdWebviewCode(cache: Record, webview?: WebviewOpti }); } - return root.toString(); + return root.removeWhitespace().toString(); } const cacheCode = /* js */ `const htmlCode = {