Socket
Socket
Sign inDemoInstall

babel-preset-react-app

Package Overview
Dependencies
311
Maintainers
3
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.1.0 to 7.0.0

18

create.js

@@ -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?$/,

16

package.json
{
"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/).

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc