diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-12-16 08:34:17 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-12-16 11:52:18 +0100 |
commit | 565c30eac9e00b2ebcbdbb8e05b5e8238a15fefb (patch) | |
tree | d7a8e84098dbca1dce0d52ab0941178949532a19 /deps/deps.go | |
parent | 48dd6a918a0ef070819ef80d59b2553bc99e2964 (diff) | |
download | hugo-565c30eac9e00b2ebcbdbb8e05b5e8238a15fefb.tar.gz hugo-565c30eac9e00b2ebcbdbb8e05b5e8238a15fefb.zip |
js: Fix js.Batch for multihost setups
Note that this is an unreleased feature.
Fixes #13151
Diffstat (limited to 'deps/deps.go')
-rw-r--r-- | deps/deps.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/deps/deps.go b/deps/deps.go index 8e9ec42d8..56a3d3644 100644 --- a/deps/deps.go +++ b/deps/deps.go @@ -24,6 +24,7 @@ import ( "github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/hugofs" "github.com/gohugoio/hugo/identity" + "github.com/gohugoio/hugo/internal/js" "github.com/gohugoio/hugo/internal/warpc" "github.com/gohugoio/hugo/media" "github.com/gohugoio/hugo/resources/page" @@ -105,6 +106,12 @@ type Deps struct { // TODO(bep) rethink this re. a plugin setup, but this will have to do for now. WasmDispatchers *warpc.Dispatchers + // The JS batcher client. + JSBatcherClient js.BatcherClient + + // The JS batcher client. + // JSBatcherClient *esbuild.BatcherClient + isClosed bool *globalErrHandler |