.fatherrc.js 307 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
import { readdirSync } from 'fs';
import { join } from 'path';

export default {
  cjs: { type: 'babel', lazy: true },
  esm: {
    type: 'babel',
    importLibToEs: true,
  },
  extraBabelPlugins: [
    ['babel-plugin-import', { libraryName: 'antd', libraryDirectory: 'es', style: true }, 'antd'],
  ],
};