UNPKG

554 BJavaScriptView Raw
1import commonjs from 'rollup-plugin-commonjs';
2
3export default {
4 entry: ['src/index.js', 'src/antd.js', 'src/fusion.js'],
5 esm: 'rollup',
6 cjs: 'babel',
7 extraRollupPlugins: [
8 commonjs({
9 include: 'node_modules/**',
10 }),
11 ],
12 extraBabelPlugins: [
13 [
14 'import',
15 {
16 libraryName: 'antd',
17 libraryDirectory: 'lib',
18 style: 'css',
19 },
20 'antd',
21 ],
22 [
23 'import',
24 {
25 libraryName: '@alifd/next',
26 libraryDirectory: 'lib',
27 },
28 '@alifd/next',
29 ],
30 ],
31};