babel-preset-react-app-new 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/create.js +1 -6
  2. package/package.json +1 -1
package/create.js CHANGED
@@ -130,8 +130,7 @@ module.exports = function (api, opts, env) {
130
130
  // ],
131
131
  // },
132
132
  // ],
133
- // Turn on legacy decorators for TypeScript files
134
- isTypeScriptEnabled && [require('@babel/plugin-proposal-decorators').default, false],
133
+ [require('@babel/plugin-proposal-decorators').default, { legacy: true }],
135
134
  // class { handleClick = () => { } }
136
135
  // Enable loose mode to use assignment instead of defineProperty
137
136
  // See discussion in https://github.com/facebook/create-react-app/issues/4263
@@ -193,10 +192,6 @@ module.exports = function (api, opts, env) {
193
192
  isFlowEnabled && {
194
193
  exclude: /\.tsx?$/,
195
194
  plugins: [require('@babel/plugin-transform-flow-strip-types').default]
196
- },
197
- isTypeScriptEnabled && {
198
- test: /\.tsx?$/,
199
- plugins: [[require('@babel/plugin-proposal-decorators').default, { legacy: true }]]
200
195
  }
201
196
  ].filter(Boolean)
202
197
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-preset-react-app-new",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Babel preset used by Create React App",
5
5
  "repository": {
6
6
  "type": "git",