summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-11-25 17:39:51 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-11-25 17:39:51 +0100
commit8a6e70605350255920100c5c085bb9ea6576d972 (patch)
treed1fd95b065f05747b2195c6fee460ac4d71eb479
parent34061706e6a9631d92ae3d01e0458eee7bc251cc (diff)
deps: Update to github.com/evanw/esbuild 0.8.11 to 0.8.14
Closes #7986
-rw-r--r--docs/content/en/hugo-pipes/js.md3
-rw-r--r--go.mod2
-rw-r--r--go.sum2
-rw-r--r--hugolib/js_test.go2
-rw-r--r--resources/resource_transformers/js/options.go2
5 files changed, 6 insertions, 5 deletions
diff --git a/docs/content/en/hugo-pipes/js.md b/docs/content/en/hugo-pipes/js.md
index 07ee560f6..5e9c027d5 100644
--- a/docs/content/en/hugo-pipes/js.md
+++ b/docs/content/en/hugo-pipes/js.md
@@ -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 e090969fa..ca14d56f8 100644
--- 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 2d9081ffd..d560330f5 100644
--- 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=
diff --git a/hugolib/js_test.go b/hugolib/js_test.go
index c783bf781..b4f1d2157 100644
--- a/hugolib/js_test.go
+++ b/hugolib/js_test.go
@@ -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) {
`)
diff --git a/resources/resource_transformers/js/options.go b/resources/resource_transformers/js/options.go
index fde6f5888..925b19956 100644
--- a/resources/resource_transformers/js/options.go
+++ b/resources/resource_transformers/js/options.go
@@ -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