From 85e4dd7370eae97ae367e596aa6a10ba42fd4b7c Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Mon, 5 Oct 2020 13:34:14 +0200 Subject: Make js.Build fully support modules Fixes #7816 Fixes #7777 Fixes #7916 --- deps/deps.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'deps') 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 -- cgit v1.2.3