diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-11-13 08:54:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-13 08:54:29 +0100 |
commit | 78f227b664d86c30fbb25f7a953b7ef8f2dacf13 (patch) | |
tree | 20c298b724513402830072a4d6768e6642851689 /commands/static_syncer.go | |
parent | 5e03f644a4507f51bdbcdb42b65ce4e99095374f (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/static_syncer.go')
-rw-r--r-- | commands/static_syncer.go | 4 |
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 } |