Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 1 | { |
| 2 | "presets": [ |
| 3 | // Includes plugins to use the latest versions of JavaScript. |
| 4 | ["@babel/preset-env", { "modules": false }], |
| 5 | // Includes multiple plugins used for TypeScript. |
| 6 | "@babel/preset-typescript", |
| 7 | // Includes multiple plugins used for React. |
| 8 | "@babel/preset-react" |
| 9 | ], |
| 10 | "plugins": [ |
| 11 | // Allows the use of class properties. |
| 12 | "@babel/plugin-proposal-class-properties", |
| 13 | // Allows the use of decorators. |
| 14 | ["@babel/plugin-proposal-decorators", {"decoratorsBeforeExport": true}], |
| 15 | // Allows the use of ES6 spread operators. |
| 16 | "@babel/plugin-proposal-object-rest-spread", |
| 17 | // Support Webpack's import() feature, which uses Promises. |
| 18 | "@babel/plugin-syntax-dynamic-import", |
| 19 | // Supports transforming JSX syntax into JavaScript. |
| 20 | "@babel/plugin-transform-react-jsx" |
| 21 | ] |
| 22 | } |