-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.js
More file actions
27 lines (27 loc) · 899 Bytes
/
babel.config.js
File metadata and controls
27 lines (27 loc) · 899 Bytes
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
module.exports = {
compact: false,
presets: [
'@babel/preset-typescript',
'@babel/preset-react',
['@babel/preset-env', { modules: 'commonjs', loose: true }],
],
plugins: [
'react-hot-loader/babel',
'@babel/plugin-transform-modules-commonjs',
'@babel/plugin-transform-destructuring',
'@babel/plugin-transform-for-of',
'@babel/plugin-transform-regenerator',
'@babel/plugin-transform-runtime',
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-proposal-class-properties',
['@babel/plugin-proposal-decorators', { legacy: true }],
'@babel/plugin-proposal-object-rest-spread',
// ['styled-components', { ssr: true }],
['import', { libraryName: '@ant-design/react-native' }],
],
env: {
production: {
compact: true,
},
},
};