Skip to content

Commit

Permalink
fix(system): allow wrapping components both from presets and plugins (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n committed May 7, 2024
1 parent 9006e70 commit 942fc83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/system/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ export const combinePlugins = (plugins, system) => {

if (isArray(plugins)) {
// eslint-disable-next-line no-unused-vars
return plugins.map((plugin) => combinePlugins(plugin, system)).reduce(systemExtend, {});
return plugins
.map((plugin) => combinePlugins(plugin, system))
.reduce(systemExtend, { components: { ...system.getComponents() } });
}

return {};
Expand Down

0 comments on commit 942fc83

Please sign in to comment.