mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
21 lines
443 B
JavaScript
21 lines
443 B
JavaScript
export default (api) => {
|
|
api.describe({
|
|
key: 'qiankun',
|
|
config: {
|
|
schema(joi) {
|
|
return joi.object().keys({
|
|
micro: joi.object(),
|
|
main: joi.object()
|
|
});
|
|
}
|
|
}
|
|
});
|
|
|
|
api.addRuntimePluginKey(() => 'qiankun');
|
|
|
|
api.registerPlugins([
|
|
require.resolve('./main'),
|
|
require.resolve('./micro')
|
|
]);
|
|
};
|