babel-preset-react-app
Advanced tools
Comparing version 6.1.0 to 7.0.0
@@ -32,2 +32,7 @@ /** | ||
var useESModules = validateBoolOption( | ||
'useESModules', | ||
opts.useESModules, | ||
isEnvDevelopment || isEnvProduction | ||
); | ||
var isFlowEnabled = validateBoolOption('flow', opts.flow, true); | ||
@@ -112,4 +117,9 @@ var isTypeScriptEnabled = validateBoolOption( | ||
// https://github.com/facebook/create-react-app/pull/5182 | ||
isFlowEnabled && | ||
// We will conditionally enable this plugin below in overrides as it clashes with | ||
// @babel/plugin-proposal-decorators when using TypeScript. | ||
// https://github.com/facebook/create-react-app/issues/5741 | ||
isFlowEnabled && [ | ||
require('@babel/plugin-transform-flow-strip-types').default, | ||
false, | ||
], | ||
// Experimental macros support. Will be documented after it's had some time | ||
@@ -156,3 +166,3 @@ // in the wild. | ||
// supports ES Modules. | ||
useESModules: isEnvDevelopment || isEnvProduction, | ||
useESModules, | ||
// Undocumented option that lets us encapsulate our runtime, ensuring | ||
@@ -178,2 +188,6 @@ // the correct version is used | ||
overrides: [ | ||
isFlowEnabled && { | ||
exclude: /\.tsx?$/, | ||
plugins: [require('@babel/plugin-transform-flow-strip-types').default], | ||
}, | ||
isTypeScriptEnabled && { | ||
@@ -180,0 +194,0 @@ test: /\.tsx?$/, |
{ | ||
"name": "babel-preset-react-app", | ||
"version": "6.1.0", | ||
"version": "7.0.0", | ||
"description": "Babel preset used by Create React App", | ||
@@ -20,22 +20,22 @@ "repository": "facebook/create-react-app", | ||
"dependencies": { | ||
"@babel/core": "7.1.0", | ||
"@babel/core": "7.1.6", | ||
"@babel/plugin-proposal-class-properties": "7.1.0", | ||
"@babel/plugin-proposal-decorators": "7.1.2", | ||
"@babel/plugin-proposal-decorators": "7.1.6", | ||
"@babel/plugin-proposal-object-rest-spread": "7.0.0", | ||
"@babel/plugin-syntax-dynamic-import": "7.0.0", | ||
"@babel/plugin-transform-classes": "7.1.0", | ||
"@babel/plugin-transform-destructuring": "7.0.0", | ||
"@babel/plugin-transform-flow-strip-types": "7.0.0", | ||
"@babel/plugin-transform-destructuring": "7.1.3", | ||
"@babel/plugin-transform-flow-strip-types": "7.1.6", | ||
"@babel/plugin-transform-react-constant-elements": "7.0.0", | ||
"@babel/plugin-transform-react-display-name": "7.0.0", | ||
"@babel/plugin-transform-runtime": "7.1.0", | ||
"@babel/preset-env": "7.1.0", | ||
"@babel/preset-env": "7.1.6", | ||
"@babel/preset-react": "7.0.0", | ||
"@babel/preset-typescript": "7.1.0", | ||
"@babel/runtime": "7.0.0", | ||
"@babel/runtime": "7.1.5", | ||
"babel-loader": "8.0.4", | ||
"babel-plugin-dynamic-import-node": "2.2.0", | ||
"babel-plugin-macros": "2.4.2", | ||
"babel-plugin-transform-react-remove-prop-types": "0.4.18" | ||
"babel-plugin-transform-react-remove-prop-types": "0.4.20" | ||
} | ||
} |
@@ -6,4 +6,4 @@ # babel-preset-react-app | ||
- [Getting Started](https://github.com/facebook/create-react-app/blob/master/README.md#getting-started) – How to create a new app. | ||
- [User Guide](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with Create React App. | ||
- [Getting Started](https://facebook.github.io/create-react-app/docs/getting-started) – How to create a new app. | ||
- [User Guide](https://facebook.github.io/create-react-app/) – How to develop apps bootstrapped with Create React App. | ||
@@ -16,3 +16,3 @@ ## Usage in Create React App Projects | ||
If you want to use this Babel preset in a project not built with Create React App, you can install it with following steps. | ||
If you want to use this Babel preset in a project not built with Create React App, you can install it with the following steps. | ||
@@ -19,0 +19,0 @@ First, [install Babel](https://babeljs.io/docs/setup/). |
18809
392
+ Added@babel/core@7.1.6(transitive)
+ Added@babel/plugin-proposal-decorators@7.1.6(transitive)
+ Added@babel/plugin-transform-destructuring@7.1.3(transitive)
+ Added@babel/plugin-transform-flow-strip-types@7.1.6(transitive)
+ Added@babel/preset-env@7.1.6(transitive)
+ Added@babel/runtime@7.1.5(transitive)
+ Addedbabel-plugin-transform-react-remove-prop-types@0.4.20(transitive)
+ Addedjson5@2.2.3(transitive)
- Removed@babel/core@7.1.0(transitive)
- Removed@babel/plugin-proposal-decorators@7.1.2(transitive)
- Removed@babel/plugin-transform-destructuring@7.0.0(transitive)
- Removed@babel/plugin-transform-flow-strip-types@7.0.0(transitive)
- Removed@babel/preset-env@7.1.0(transitive)
- Removed@babel/runtime@7.0.0(transitive)
- Removedbabel-plugin-transform-react-remove-prop-types@0.4.18(transitive)
- Removeddebug@3.2.7(transitive)
- Removedjson5@0.5.1(transitive)
Updated@babel/core@7.1.6
Updated@babel/preset-env@7.1.6
Updated@babel/runtime@7.1.5
Updatedbabel-plugin-transform-react-remove-prop-types@0.4.20