mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-22 21:44:12 +00:00
parent
34061706e6
commit
8a6e706053
5 changed files with 6 additions and 5 deletions
|
@ -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`.
|
||||
|
|
2
go.mod
2
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
|
||||
|
|
2
go.sum
2
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=
|
||||
|
|
|
@ -133,7 +133,7 @@ TS: {{ template "print" $ts }}
|
|||
b.AssertFileContent("public/index.html", `
|
||||
console.log("included");
|
||||
if (hasSpace.test(string))
|
||||
const React = __toModule(require("react"));
|
||||
var React = __toModule(require("react"));
|
||||
function greeter(person) {
|
||||
`)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue