babel-preset-react-app
Advanced tools
Comparing version 6.0.0 to 6.1.0
@@ -120,2 +120,7 @@ /** | ||
require('@babel/plugin-transform-destructuring').default, | ||
// Turn on legacy decorators for TypeScript files | ||
isTypeScriptEnabled && [ | ||
require('@babel/plugin-proposal-decorators').default, | ||
false, | ||
], | ||
// class { handleClick = () => { } } | ||
@@ -170,3 +175,14 @@ // Enable loose mode to use assignment instead of defineProperty | ||
].filter(Boolean), | ||
overrides: [ | ||
isTypeScriptEnabled && { | ||
test: /\.tsx?$/, | ||
plugins: [ | ||
[ | ||
require('@babel/plugin-proposal-decorators').default, | ||
{ legacy: true }, | ||
], | ||
], | ||
}, | ||
].filter(Boolean), | ||
}; | ||
}; |
{ | ||
"name": "babel-preset-react-app", | ||
"version": "6.0.0", | ||
"version": "6.1.0", | ||
"description": "Babel preset used by Create React App", | ||
@@ -22,2 +22,3 @@ "repository": "facebook/create-react-app", | ||
"@babel/plugin-proposal-class-properties": "7.1.0", | ||
"@babel/plugin-proposal-decorators": "7.1.2", | ||
"@babel/plugin-proposal-object-rest-spread": "7.0.0", | ||
@@ -24,0 +25,0 @@ "@babel/plugin-syntax-dynamic-import": "7.0.0", |
18397
378
19
+ Added@babel/plugin-proposal-decorators@7.1.2(transitive)
+ Added@babel/plugin-syntax-decorators@7.24.6(transitive)