Browse Source
build(babel): ensure used env presets are enabled
renovate/prettier-1.x
Tom Kirkpatrick
6 years ago
No known key found for this signature in database
GPG Key ID: 72203A8EC5967EA8
1 changed files with
11 additions and
1 deletions
-
babel.config.js
|
|
@ -1,5 +1,15 @@ |
|
|
|
module.exports = { |
|
|
|
presets: ['@babel/preset-env', '@babel/preset-flow', '@babel/react'], |
|
|
|
presets: [ |
|
|
|
[ |
|
|
|
'@babel/preset-env', |
|
|
|
{ |
|
|
|
useBuiltIns: 'usage', |
|
|
|
include: ['proposal-object-rest-spread', 'transform-classes', 'transform-destructuring'] |
|
|
|
} |
|
|
|
], |
|
|
|
'@babel/preset-flow', |
|
|
|
'@babel/react' |
|
|
|
], |
|
|
|
plugins: [ |
|
|
|
'@babel/plugin-proposal-class-properties', |
|
|
|
'@babel/plugin-proposal-export-default-from', |
|
|
|