Reuse default import patterns
This commit is contained in:
@@ -124,7 +124,8 @@ func resolveImportPolicy(spec importDeclarationSpec, defaults ImportDefaults) (r
|
||||
if spec.patternSet {
|
||||
policy.pattern = cloneStrings(spec.pattern)
|
||||
} else {
|
||||
policy.pattern = cloneStrings(defaults.Pattern)
|
||||
// Defaults belong to the load's snapshot. Selectors only read them.
|
||||
policy.pattern = defaults.Pattern
|
||||
}
|
||||
}
|
||||
if spec.depthSet && !policy.recursive {
|
||||
|
||||
Reference in New Issue
Block a user