UNPKG

@onehat/ui

Version:
7 lines (5 loc) 290 B
import UiGlobals from '../UiGlobals.js'; import _ from 'lodash'; export default function registerComponents(newComponents) { _.assign(UiGlobals.components, newComponents); // use assign instead of merge, so that it overwrites existing properties; however this does not work recursively }