File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,11 @@ module.exports = {
192
192
// @remove -on-eject-begin
193
193
babelrc : false ,
194
194
presets : [ require . resolve ( 'babel-preset-react-app' ) ] ,
195
+ plugins : [
196
+ // require.resolve('babel-plugin-transform-class-properties'),
197
+ // this enables decorators
198
+ require . resolve ( 'babel-plugin-transform-decorators-legacy' ) ,
199
+ ] ,
195
200
// @remove -on-eject-end
196
201
// This is a feature of `babel-loader` for webpack (not Babel itself).
197
202
// It enables caching results in ./node_modules/.cache/babel-loader/
Original file line number Diff line number Diff line change @@ -189,7 +189,15 @@ module.exports = {
189
189
// @remove -on-eject-begin
190
190
options : {
191
191
babelrc : false ,
192
- presets : [ require . resolve ( 'babel-preset-react-app' ) ] ,
192
+ presets : [
193
+ require . resolve ( 'babel-preset-react-app' ) ,
194
+ // this might be needed if babel-preset-react-app is missing new features we use
195
+ // require.resolve('babel-preset-stage-2')
196
+ ] ,
197
+ plugins : [
198
+ // this enables decorators
199
+ require . resolve ( 'babel-plugin-transform-decorators-legacy' ) ,
200
+ ] ,
193
201
} ,
194
202
// @remove -on-eject-end
195
203
} ,
Original file line number Diff line number Diff line change 26
26
"babel-eslint" : " 7.2.3" ,
27
27
"babel-jest" : " 20.0.3" ,
28
28
"babel-loader" : " 7.0.0" ,
29
+ "babel-plugin-transform-decorators-legacy" : " ^1.3.4" ,
29
30
"babel-preset-react-app" : " ^3.0.0" ,
30
31
"babel-runtime" : " 6.23.0" ,
31
32
"case-sensitive-paths-webpack-plugin" : " 1.1.4" ,
You can’t perform that action at this time.
0 commit comments