forked from DiDi-Incubator/KnowDesign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.fatherrc.js
30 lines (29 loc) · 889 Bytes
/
.fatherrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import react from 'react';
import reactDom from 'react-dom';
import reactIs from 'react-is';
import propTypes from 'prop-types';
export default
{
// cssModules: true, // 默认是 .module.css 走 css modules,.css 不走 css modules。配置 cssModules 为 true 后,全部 css 文件都走 css modules。(less 文件同理)
extractCSS: true,
// esm: 'babel',
// cjs: 'babel',
umd: {
name: 'knowdesign',
sourcemap: false,
globals: {
react: 'React',
antd: 'antd'
},
},
extraBabelPlugins: [
['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }],
],
entry: 'src/index.tsx',
// namedExports: {
// react: Object.keys(react),
// 'react-dom': Object.keys(reactDom),
// 'react-is': Object.keys(reactIs),
// 'prop-types': Object.keys(propTypes),
// },
}