Skip to content

Commit

Permalink
deps: Update to esbuild v0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Mar 14, 2021
1 parent f6612d8 commit 1b1dcf5
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
3 changes: 0 additions & 3 deletions docs/content/en/hugo-pipes/js.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 0 additions & 2 deletions resources/resource_transformers/js/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion resources/resource_transformers/js/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ func TestToBuildOptions(t *testing.T) {
MinifyIdentifiers: true,
MinifySyntax: true,
MinifyWhitespace: true,
AvoidTDZ: true,
Stdin: &api.StdinOptions{
Loader: api.LoaderJS,
},
Expand Down

0 comments on commit 1b1dcf5

Please sign in to comment.