mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-15 15:03:17 +00:00
fix: Resolve cfg redeclaration and update ignore patterns field
This commit is contained in:
@@ -131,8 +131,8 @@ func runRollup() error {
|
||||
} else {
|
||||
codeGenList = strings.Split(codeGenPatterns, ",")
|
||||
}
|
||||
if cfg != nil && len(cfg.Ignore) > 0 {
|
||||
ignoreList = cfg.Ignore
|
||||
if cfg != nil && len(cfg.IgnorePatterns) > 0 {
|
||||
ignoreList = cfg.IgnorePatterns
|
||||
} else {
|
||||
ignoreList = strings.Split(ignorePatterns, ",")
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
var (
|
||||
urls []string
|
||||
outputFile string
|
||||
cfg *config.Config
|
||||
)
|
||||
|
||||
var webCmd = &cobra.Command{
|
||||
|
||||
Reference in New Issue
Block a user