1 | module.exports = {
|
2 |
|
3 | babelrc: false,
|
4 | presets: [
|
5 |
|
6 | require.resolve('babel-preset-es2015'),
|
7 |
|
8 | require.resolve('babel-preset-es2016'),
|
9 |
|
10 | require.resolve('babel-preset-react')
|
11 | ],
|
12 | plugins: [
|
13 |
|
14 | require.resolve('babel-plugin-syntax-trailing-function-commas'),
|
15 |
|
16 | require.resolve('babel-plugin-syntax-async-functions'),
|
17 |
|
18 | require.resolve('babel-plugin-transform-class-properties'),
|
19 |
|
20 | require.resolve('babel-plugin-transform-object-rest-spread'),
|
21 |
|
22 | require.resolve('babel-plugin-transform-regenerator'),
|
23 |
|
24 | [require.resolve('babel-plugin-transform-runtime'), {
|
25 | helpers: false,
|
26 | polyfill: false,
|
27 | regenerator: true
|
28 | }],
|
29 |
|
30 | require.resolve('babel-plugin-transform-react-constant-elements')
|
31 | ]
|
32 | }; |
\ | No newline at end of file |