create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
44 lines (34 loc) • 1.03 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.withPlugins = void 0;
function _assert() {
const data = _interopRequireDefault(require("assert"));
_assert = function () {
return data;
};
return data;
}
function _withStaticPlugin() {
const data = require("./withStaticPlugin");
_withStaticPlugin = function () {
return data;
};
return data;
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Resolves a list of plugins.
*
* @param config exported config
* @param plugins list of config config plugins to apply to the exported config
*/
const withPlugins = (config, plugins) => {
(0, _assert().default)(Array.isArray(plugins), 'withPlugins expected a valid array of plugins or plugin module paths');
return plugins.reduce((prev, plugin) => (0, _withStaticPlugin().withStaticPlugin)(prev, {
plugin
}), config);
};
exports.withPlugins = withPlugins;
//# sourceMappingURL=withPlugins.js.map
;