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
31
32
33
34
35
36
37
38
39
40
41
| module.exports = {
| sourceType: 'unambiguous',
| presets: [
| [
| '@babel/preset-env',
| {
| modules: false,
| useBuiltIns: 'entry',
| corejs: { version: 3, proposals: true },
| shippedProposals: true,
| targets: { ie: 9 }
| }
| ],
| ['@babel/preset-react']
| ],
| plugins: [
| ['@babel/plugin-syntax-dynamic-import'],
| ['@babel/plugin-syntax-class-properties'],
| ['@babel/plugin-proposal-decorators', { legacy: true }],
| [
| '@babel/plugin-transform-runtime',
| {
| corejs: { version: 3, proposals: true },
| }
| ],
| '@babel/plugin-proposal-optional-chaining',
| '@babel/plugin-proposal-class-properties',
| 'transform-es2015-shorthand-properties',
| 'lodash',
| ['import', { libraryName: 'antd', style: true }, 'antd'],
| [
| 'transform-imports',
| {
| 'uc-fun': {
| transform: 'uc-fun/src/${member}',
| preventFullImport: true
| }
| }
| ]
| ]
| };
|
|