You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
439 B

2 years ago
  1. import { defineConfig } from 'father';
  2. export default defineConfig({
  3. esm: { input: 'src', // 默认编译目录
  4. platform: 'browser', // 默认构建为 Browser 环境的产物
  5. transformer: 'babel', // 默认使用 babel 以提供更好的兼容性
  6. },
  7. extraBabelPlugins: [
  8. [
  9. 'babel-plugin-import',
  10. {
  11. libraryName: 'antd',
  12. libraryDirectory: 'es',
  13. style: true,
  14. },
  15. ],
  16. ],
  17. });