Skip to content

Commit

Permalink
fix(config): prefer cli config over rc config (#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanbanov committed Aug 15, 2023
1 parent ae91e2e commit 8b97248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/config.ts
Expand Up @@ -119,7 +119,7 @@ export const loadConfig = async (
state.filePath && baseConfig.runtimeConfig !== false
? await resolveConfig(state.filePath, configFile)
: {}
return { ...DEFAULT_CONFIG, ...rcConfig, ...baseConfig }
return { ...DEFAULT_CONFIG, ...baseConfig, ...rcConfig }
}

loadConfig.sync = (
Expand All @@ -130,5 +130,5 @@ loadConfig.sync = (
state.filePath && baseConfig.runtimeConfig !== false
? resolveConfig.sync(state.filePath, configFile)
: {}
return { ...DEFAULT_CONFIG, ...rcConfig, ...baseConfig }
return { ...DEFAULT_CONFIG, ...baseConfig, ...rcConfig }
}

1 comment on commit 8b97248

@vercel
Copy link

@vercel vercel bot commented on 8b97248 Aug 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

svgr – ./

svgr-git-main-gregberge.vercel.app
svgr-gregberge.vercel.app
api.react-svgr.com

Please sign in to comment.