| 1 | 'use strict'; |
| 2 | |
| 3 | module.exports = { |
| 4 | plugins: [ |
| 5 | '@babel/plugin-syntax-jsx', |
| 6 | '@babel/plugin-transform-flow-strip-types', |
| 7 | ['@babel/plugin-proposal-class-properties', {loose: true}], |
| 8 | 'syntax-trailing-function-commas', |
| 9 | [ |
| 10 | '@babel/plugin-proposal-object-rest-spread', |
| 11 | {loose: true, useBuiltIns: true}, |
| 12 | ], |
| 13 | ['@babel/plugin-transform-template-literals', {loose: true}], |
| 14 | '@babel/plugin-transform-literals', |
| 15 | '@babel/plugin-transform-arrow-functions', |
| 16 | '@babel/plugin-transform-block-scoped-functions', |
| 17 | '@babel/plugin-transform-object-super', |
| 18 | '@babel/plugin-transform-shorthand-properties', |
| 19 | '@babel/plugin-transform-for-of', |
| 20 | ['@babel/plugin-transform-spread', {loose: true, useBuiltIns: true}], |
| 21 | '@babel/plugin-transform-parameters', |
| 22 | ['@babel/plugin-transform-destructuring', {loose: true, useBuiltIns: true}], |
| 23 | ['@babel/plugin-transform-block-scoping', {throwIfClosureRequired: true}], |
| 24 | ], |
| 25 | }; |