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 /hugofs/rootmapping_fs.go | |
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 'hugofs/rootmapping_fs.go')
-rw-r--r-- | hugofs/rootmapping_fs.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hugofs/rootmapping_fs.go b/hugofs/rootmapping_fs.go index 2c4f0df52..a38560d0a 100644 --- a/hugofs/rootmapping_fs.go +++ b/hugofs/rootmapping_fs.go @@ -60,6 +60,7 @@ func NewRootMappingFs(fs afero.Fs, rms ...RootMapping) (*RootMappingFs, error) { rm.Meta = make(FileMeta) } + rm.Meta[metaKeySourceRoot] = rm.To rm.Meta[metaKeyBaseDir] = rm.ToBasedir rm.Meta[metaKeyMountRoot] = rm.path rm.Meta[metaKeyModule] = rm.Module |