deps: Update to github.com/evanw/esbuild 0.8.11 to 0.8.14
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 25 Nov 2020 16:39:51 +0000 (17:39 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 25 Nov 2020 16:39:51 +0000 (17:39 +0100)
Closes #7986

docs/content/en/hugo-pipes/js.md
go.mod
go.sum
hugolib/js_test.go
resources/resource_transformers/js/options.go

index 07ee560f689b4fb094e328a450a07d85b2ec0e02..5e9c027d577d8898b1b31d7f8b0888078eb1b12c 100644 (file)
@@ -40,9 +40,6 @@ Note that this is meant for small data sets, e.g. config settings. For larger da
 minify [bool]
 : Let `js.Build` handle the minification.
 
-avoidTDZ {{< new-in "0.78.0" >}}
-: There is/was a bug in WebKit with severe performance issue with the tracking of TDZ checks in JavaScriptCore. Enabling this flag removes the TDZ and `const` assignment checks and may improve performance of larger JS codebases until the WebKit fix is in widespread use. See https://bugs.webkit.org/show_bug.cgi?id=199866
-
 target [string]
 : The language target.
   One of: `es5`, `es2015`, `es2016`, `es2017`, `es2018`, `es2019`, `es2020` or `esnext`.
diff --git a/go.mod b/go.mod
index e090969fa3911728f1cf90ee7b5d081859f64edd..ca14d56f863476687c5aa36a1960e1853a30daa5 100644 (file)
--- a/go.mod
+++ b/go.mod
@@ -16,7 +16,7 @@ require (
        github.com/disintegration/gift v1.2.1
        github.com/dlclark/regexp2 v1.4.0 // indirect
        github.com/dustin/go-humanize v1.0.0
-       github.com/evanw/esbuild v0.8.11
+       github.com/evanw/esbuild v0.8.15
        github.com/fortytw2/leaktest v1.3.0
        github.com/frankban/quicktest v1.11.2
        github.com/fsnotify/fsnotify v1.4.9
diff --git a/go.sum b/go.sum
index 2d9081ffdb6f81c87b5082b97bac697602c30eec..d560330f56cd890a49b3a55873e7ce580318fc07 100644 (file)
--- a/go.sum
+++ b/go.sum
@@ -136,6 +136,8 @@ github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1
 github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I=
 github.com/evanw/esbuild v0.8.11 h1:sfs2i0c6oh3eiBCh1a6SLBZmybV5xVxs8obXi0qHyQU=
 github.com/evanw/esbuild v0.8.11/go.mod h1:y2AFBAGVelPqPodpdtxWWqe6n2jYf5FrsJbligmRmuw=
+github.com/evanw/esbuild v0.8.15 h1:JYrS8XxwIgWL8/UkL9O+rfUE0x6PFzZ5ysGyjaFJueo=
+github.com/evanw/esbuild v0.8.15/go.mod h1:y2AFBAGVelPqPodpdtxWWqe6n2jYf5FrsJbligmRmuw=
 github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
 github.com/fortytw2/leaktest v1.2.0 h1:cj6GCiwJDH7l3tMHLjZDo0QqPtrXJiWSI9JgpeQKw+Q=
 github.com/fortytw2/leaktest v1.2.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g=
index c783bf781419777b053146361b6e359ddbad532a..b4f1d21577cd93b28ff1cf87be2b524f0fca0a77 100644 (file)
@@ -133,7 +133,7 @@ TS: {{ template "print" $ts }}
        b.AssertFileContent("public/index.html", `
 console.log(&#34;included&#34;);
 if (hasSpace.test(string))
-const React = __toModule(require(&#34;react&#34;));
+var React = __toModule(require(&#34;react&#34;));
 function greeter(person) {
 `)
 
index fde6f58886beba593b3be2f5b2af3f21f785e187..925b1995648873180f8da1259665f4c44ba91685 100644 (file)
@@ -85,6 +85,8 @@ type Options struct {
        // is in widespread use.
        //
        // See https://bugs.webkit.org/show_bug.cgi?id=199866
+       // Deprecated: This no longer have any effect and will be removed.
+       // TODO(bep) remove. See https://github.com/evanw/esbuild/commit/869e8117b499ca1dbfc5b3021938a53ffe934dba
        AvoidTDZ bool
 
        mediaType  media.Type