g6/packages/mobile/.fatherrc.js
2021-05-21 09:05:24 +08:00

16 lines
306 B
JavaScript

const fs = require('fs');
const path = require('path');
let entry = ['./src/index.ts'];
const extenders = fs.readdirSync(path.join(__dirname, './src/extends'));
extenders.forEach((name) => {
entry.push(`./src/extends/${name}/index.ts`);
})
export default {
entry,
esm: 'babel',
cjs: 'babel',
};