Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-11-13 10:54:29 +0300
committerGitHub <noreply@github.com>2020-11-13 10:54:29 +0300
commit78f227b664d86c30fbb25f7a953b7ef8f2dacf13 (patch)
tree20c298b724513402830072a4d6768e6642851689 /commands
parent5e03f644a4507f51bdbcdb42b65ce4e99095374f (diff)
js: Let ESBuild handle all imports from node_modules
This commit fixes some issues where modules in /assets share the same name as in node_modules. This was not intended, and with this commit the node_modules-components should be isolated. If you want to redefine something inside node_modules, use the `defines` option. Fixes #7948
Diffstat (limited to 'commands')
-rw-r--r--commands/static_syncer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/static_syncer.go b/commands/static_syncer.go
index 17fae7d13..bd696520a 100644
--- a/commands/static_syncer.go
+++ b/commands/static_syncer.go
@@ -79,9 +79,9 @@ func (s *staticSyncer) syncsStaticEvents(staticEvents []fsnotify.Event) error {
fromPath := ev.Name
- relPath := sourceFs.MakePathRelative(fromPath)
+ relPath, found := sourceFs.MakePathRelative(fromPath)
- if relPath == "" {
+ if !found {
// Not member of this virtual host.
continue
}