diff options
author | Bjørn Erik Pedersen <[email protected]> | 2020-10-05 13:34:14 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2020-11-03 13:04:37 +0100 |
commit | 85e4dd7370eae97ae367e596aa6a10ba42fd4b7c (patch) | |
tree | 23e739edbed24a62f842c1a3ebc1d9cb706ea8b7 /deps | |
parent | 3089fc0ba171be14670b19439bc2eab6b077b6c3 (diff) | |
download | hugo-85e4dd7370eae97ae367e596aa6a10ba42fd4b7c.tar.gz hugo-85e4dd7370eae97ae367e596aa6a10ba42fd4b7c.zip |
Make js.Build fully support modules
Fixes #7816
Fixes #7777
Fixes #7916
Diffstat (limited to 'deps')
-rw-r--r-- | deps/deps.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/deps.go b/deps/deps.go index b70dcb5a0..f6b64c279 100644 --- a/deps/deps.go +++ b/deps/deps.go @@ -316,14 +316,16 @@ func (d Deps) ForLanguage(cfg DepsCfg, onCreated func(d *Deps) error) (*Deps, er d.Site = cfg.Site - // The resource cache is global so reuse. + // These are common for all sites, so reuse. // TODO(bep) clean up these inits. resourceCache := d.ResourceSpec.ResourceCache + postBuildAssets := d.ResourceSpec.PostBuildAssets d.ResourceSpec, err = resources.NewSpec(d.PathSpec, d.ResourceSpec.FileCaches, d.BuildState, d.Log, d.globalErrHandler, cfg.OutputFormats, cfg.MediaTypes) if err != nil { return nil, err } d.ResourceSpec.ResourceCache = resourceCache + d.ResourceSpec.PostBuildAssets = postBuildAssets d.Cfg = l d.Language = l |