mirror of
https://gitee.com/antv/g6.git
synced 2024-12-05 05:09:07 +08:00
16 lines
306 B
JavaScript
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',
|
|
};
|