UNPKG

@ksconsole/qiankun-plus

Version:

A completed implementation of Micro Frontends

13 lines 517 B
import _concat from "lodash/concat"; import _mergeWith from "lodash/mergeWith"; /** * @author Kuitos * @since 2020-03-02 */ import getEngineFlagAddon from './engineFlag'; import getRuntimePublicPathAddOn from './runtimePublicPath'; export default function getAddOns(global, publicPath) { return _mergeWith({}, getEngineFlagAddon(global), getRuntimePublicPathAddOn(global, publicPath), function (v1, v2) { return _concat(v1 !== null && v1 !== void 0 ? v1 : [], v2 !== null && v2 !== void 0 ? v2 : []); }); }