Skip to content

Commit

Permalink
🐛 Fix "mergeConfig is not a function" #333
Browse files Browse the repository at this point in the history
  • Loading branch information
aswetlow committed Apr 25, 2022
1 parent d7d2828 commit a5f02da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/ProjectConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ export class ProjectConfig {
configContent.plugins = Object.values(mergedPlugins);

for (const plugin of configContent.plugins) {
plugin.mergeConfig(plugin.initConfig);
if (plugin.mergeConfig) {
plugin.mergeConfig(plugin.initConfig);
}
}

delete configContent.stages;
Expand Down

0 comments on commit a5f02da

Please sign in to comment.