aboutsummaryrefslogtreecommitdiffhomepage
path: root/deps
diff options
context:
space:
mode:
Diffstat (limited to 'deps')
-rw-r--r--deps/deps.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/deps/deps.go b/deps/deps.go
index 0d0f283c2..e137aed7b 100644
--- a/deps/deps.go
+++ b/deps/deps.go
@@ -23,6 +23,7 @@ import (
"github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/hugofs"
"github.com/gohugoio/hugo/identity"
+ "github.com/gohugoio/hugo/internal/warpc"
"github.com/gohugoio/hugo/media"
"github.com/gohugoio/hugo/resources/page"
"github.com/gohugoio/hugo/resources/postpub"
@@ -93,6 +94,10 @@ type Deps struct {
// This is common/global for all sites.
BuildState *BuildState
+ // Holds RPC dispatchers for Katex etc.
+ // TODO(bep) rethink this re. a plugin setup, but this will have to do for now.
+ WasmDispatchers *warpc.Dispatchers
+
*globalErrHandler
}
@@ -343,6 +348,9 @@ func (d *Deps) Close() error {
if d.MemCache != nil {
d.MemCache.Stop()
}
+ if d.WasmDispatchers != nil {
+ d.WasmDispatchers.Close()
+ }
return d.BuildClosers.Close()
}