1 | const babelOptions: IBabelOptions = {
|
2 | sourceMap: true,
|
3 | presets: [
|
4 | 'env'
|
5 | ],
|
6 | plugins: [
|
7 | require('babel-plugin-transform-react-jsx'),
|
8 | 'transform-decorators-legacy',
|
9 | 'transform-class-properties',
|
10 | 'transform-object-rest-spread'
|
11 | ]
|
12 | }
|
13 |
|
14 | export default babelOptions
|
15 |
|
16 | export interface IBabelOptions {
|
17 | sourceMap: boolean,
|
18 | presets: string[],
|
19 | plugins: any[]
|
20 | }
|