9 lines
470 B
JavaScript
9 lines
470 B
JavaScript
import _concat from "lodash/concat";
|
|
import _mergeWith from "lodash/mergeWith";
|
|
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 : []);
|
|
});
|
|
} |