Repository: gohugoio/hugo (language: go)

Issue:
Minify issue (tdewolff/minify #623)
Using Hugo 0.120.0 (macOS on ARM). Apparently a bug was just fixed moments ago in tdewolff/minify:

https://github.com/tdewolff/minify/issues/623

. . . and I have seen it in local testing of Hugo 0.120.0 as follows:

```
Error: error building site: MINIFY: failed to transform "js/lite-yt-embed_2023-10-04_v3-0-0.js" (text/javascript): unexpected return in expression on line 87 and column 39
   87:         if (LiteYTEmbed.preconnected) return;
```

. . . a line which presented no problems prior to Hugo 0.120.0.


Discussion / hints:
@tdewolff Please roll a release when you have a moment. Thanks.
We're all working in parallel it seems! Haha, v2.20.1 just released!

Fix patch:
diff --git a/go.mod b/go.mod
index bb459bf1d5e..2d28096e1b9 100644
--- a/go.mod
+++ b/go.mod
@@ -61,8 +61,8 @@ require (
 	github.com/spf13/cobra v1.7.0
 	github.com/spf13/fsync v0.9.0
 	github.com/spf13/pflag v1.0.5
-	github.com/tdewolff/minify/v2 v2.20.0
-	github.com/tdewolff/parse/v2 v2.7.0
+	github.com/tdewolff/minify/v2 v2.20.1
+	github.com/tdewolff/parse/v2 v2.7.1
 	github.com/yuin/goldmark v1.6.0
 	github.com/yuin/goldmark-emoji v1.0.2
 	go.uber.org/atomic v1.11.0
diff --git a/go.sum b/go.sum
index 55f3d89c699..a5e9e2cb28c 100644
--- a/go.sum
+++ b/go.sum
@@ -433,10 +433,10 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
 github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
 github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
 github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
-github.com/tdewolff/minify/v2 v2.20.0 h1:JFoL/Jxnyebf/jw3woqpmwBjSNJYSeU+sTFl9dTMHQ8=
-github.com/tdewolff/minify/v2 v2.20.0/go.mod h1:TEE9CWftBwKQLUTZHuH9upjiqlt8zFpQOGxQ81rsG3c=
-github.com/tdewolff/parse/v2 v2.7.0 h1:eVeKTV9nQ9BNS0LPlOgrhLXisiAjacaf60aRgSEtnic=
-github.com/tdewolff/parse/v2 v2.7.0/go.mod h1:9p2qMIHpjRSTr1qnFxQr+igogyTUTlwvf9awHSm84h8=
+github.com/tdewolff/minify/v2 v2.20.1 h1:ARmlyj4gJYXNrPtdatTR9gMusp3AciwZA5o/qYtFbow=
+github.com/tdewolff/minify/v2 v2.20.1/go.mod h1:spLa6hfzR2CXXPV92kcHpziPsOobxB7IFov+8k5l5NY=
+github.com/tdewolff/parse/v2 v2.7.1 h1:gdImkv0sIupYr/cXAu5s+CxfVpxMdYZX2Qr+5Q+RdF8=
+github.com/tdewolff/parse/v2 v2.7.1/go.mod h1:9p2qMIHpjRSTr1qnFxQr+igogyTUTlwvf9awHSm84h8=
 github.com/tdewolff/test v1.0.10 h1:uWiheaLgLcNFqHcdWveum7PQfMnIUTf9Kl3bFxrIoew=
 github.com/tdewolff/test v1.0.10/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE=
 github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0=


Test patch: