diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-03-09 12:23:42 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-03-14 11:51:25 +0100 |
commit | 1b1dcf586e220c3a8ad5ecfa8e4c3dac97f0ab44 (patch) | |
tree | 9f72cdb33b2882220c50cdd08259c13078824e32 | |
parent | f6612d8bd8c4c3bb498178d14f45d3acdf86aa7c (diff) |
deps: Update to esbuild v0.9.0
-rw-r--r-- | docs/content/en/hugo-pipes/js.md | 3 | ||||
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | go.sum | 2 | ||||
-rw-r--r-- | resources/resource_transformers/js/options.go | 2 | ||||
-rw-r--r-- | resources/resource_transformers/js/options_test.go | 1 |
5 files changed, 3 insertions, 7 deletions
diff --git a/docs/content/en/hugo-pipes/js.md b/docs/content/en/hugo-pipes/js.md index a9befa220..63bd8bdd9 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 - inject [slice] {{< new-in "0.81.0" >}} : This option allows you to automatically replace a global variable with an import from another file. The path names must be relative to `assets`. See https://esbuild.github.io/api/#inject @@ -18,7 +18,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.46 + github.com/evanw/esbuild v0.9.0 github.com/fortytw2/leaktest v1.3.0 github.com/frankban/quicktest v1.11.3 github.com/fsnotify/fsnotify v1.4.9 @@ -233,6 +233,8 @@ github.com/envoyproxy/protoc-gen-validate v0.1.0 h1:EQciDnbrYxy13PgWoY8AqoxGiPrp github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/evanw/esbuild v0.8.46 h1:RlryMOkj9pbbRog5IbHoVc5i6go4RIxa9BCcFDBozvA= github.com/evanw/esbuild v0.8.46/go.mod h1:y2AFBAGVelPqPodpdtxWWqe6n2jYf5FrsJbligmRmuw= +github.com/evanw/esbuild v0.9.0 h1:ONAtJ2+GMa7odUBVzUZjcRAhDGHA02pzBNFDYjOsbJk= +github.com/evanw/esbuild v0.9.0/go.mod h1:y2AFBAGVelPqPodpdtxWWqe6n2jYf5FrsJbligmRmuw= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= diff --git a/resources/resource_transformers/js/options.go b/resources/resource_transformers/js/options.go index a199b2c14..ceed22f34 100644 --- a/resources/resource_transformers/js/options.go +++ b/resources/resource_transformers/js/options.go @@ -387,8 +387,6 @@ func toBuildOptions(opts Options) (buildOptions api.BuildOptions, err error) { JSXFactory: opts.JSXFactory, JSXFragment: opts.JSXFragment, - AvoidTDZ: opts.AvoidTDZ, - Tsconfig: opts.tsConfig, // Note: We're not passing Sourcefile to ESBuild. diff --git a/resources/resource_transformers/js/options_test.go b/resources/resource_transformers/js/options_test.go index f425c3e75..c178ee8c9 100644 --- a/resources/resource_transformers/js/options_test.go +++ b/resources/resource_transformers/js/options_test.go @@ -68,7 +68,6 @@ func TestToBuildOptions(t *testing.T) { MinifyIdentifiers: true, MinifySyntax: true, MinifyWhitespace: true, - AvoidTDZ: true, Stdin: &api.StdinOptions{ Loader: api.LoaderJS, }, |