mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
25 lines
567 B
JavaScript
25 lines
567 B
JavaScript
import { name } from '../package.json';
|
|
|
|
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')]);
|
|
|
|
api.addConfigType(() => ({
|
|
source: name,
|
|
build: ['QiankunBuildConfig'],
|
|
}));
|
|
};
|