Skip to content

Commit

Permalink
Import collect_all as a barrel
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinHeathman committed Oct 17, 2024
1 parent 66abfe5 commit 8ba8fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gazelle/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (lang *JS) Imports(c *config.Config, r *rule.Rule, f *rule.File) []resolve.
}

// modules can be resolved via the directory containing them
if isBarrel {
if isBarrel || jsConfig.CollectAll {
importSpecs = append(importSpecs, resolve.ImportSpec{
Lang: lang.Name(),
Imp: f.Pkg,
Expand Down

0 comments on commit 8ba8fd7

Please sign in to comment.