babel-preset-airbnb
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -12,3 +12,5 @@ module.exports = { | ||
require('babel-plugin-transform-exponentiation-operator'), | ||
require('babel-plugin-syntax-trailing-function-commas'), | ||
require('babel-plugin-transform-object-rest-spread'), | ||
], | ||
}; |
{ | ||
"name": "babel-preset-airbnb", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "A babel preset for transforming your JavaScript for Airbnb", | ||
@@ -19,10 +19,12 @@ "main": "index.js", | ||
"dependencies": { | ||
"babel-plugin-transform-es2015-template-literals": "^6.5.0", | ||
"babel-plugin-transform-es3-member-expression-literals": "^6.5.0", | ||
"babel-plugin-transform-es3-property-literals": "^6.5.0", | ||
"babel-plugin-transform-exponentiation-operator": "^6.5.0", | ||
"babel-plugin-transform-jscript": "^6.5.0", | ||
"babel-preset-es2015-without-strict": "^0.0.2", | ||
"babel-preset-react": "^6.5.0" | ||
"babel-plugin-syntax-trailing-function-commas": "^6.13.0", | ||
"babel-plugin-transform-es2015-template-literals": "^6.8.0", | ||
"babel-plugin-transform-es3-member-expression-literals": "^6.8.0", | ||
"babel-plugin-transform-es3-property-literals": "^6.8.0", | ||
"babel-plugin-transform-exponentiation-operator": "^6.8.0", | ||
"babel-plugin-transform-jscript": "^6.8.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.8.0", | ||
"babel-preset-es2015-without-strict": "^0.0.4", | ||
"babel-preset-react": "^6.11.1" | ||
} | ||
} |
@@ -5,2 +5,10 @@ # babel-preset-airbnb | ||
Currently contains transforms for all standard syntax that is [stage 4](https://tc39.github.io/ecma262/) (ES2017) or [stage 3](https://github.com/tc39/proposals#active-proposals), except for the following: | ||
- generators: `regenerator-runtime` is too heavyweight for our use. | ||
- `async/await`: `regenerator-runtime` is too heavyweight for our use, and [async-to-promises](https://www.npmjs.com/package/babel-plugin-async-to-promises) is not yet complete enough to be safely used. | ||
- `SIMD`: this is a performance feature, so is pretty pointless to polyfill/transpile. | ||
- lifted template literal restrictions: we do not use tagged template literals, nor implement custom DSLs, otherwise we would enable this. | ||
We have also enabled object rest/spread, although it is only at stage 2. It will hopefully achieve stage 3 soon. | ||
## Install | ||
@@ -7,0 +15,0 @@ |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3282
15
44
0
9
+ Addedbabel-plugin-syntax-object-rest-spread@6.13.0(transitive)
+ Addedbabel-plugin-syntax-trailing-function-commas@6.22.0(transitive)
+ Addedbabel-plugin-transform-es2015-duplicate-keys@6.24.1(transitive)
+ Addedbabel-plugin-transform-object-rest-spread@6.26.0(transitive)
+ Addedbabel-preset-es2015-without-strict@0.0.4(transitive)
- Removedbabel-preset-es2015-without-strict@0.0.2(transitive)
Updatedbabel-plugin-transform-es2015-template-literals@^6.8.0
Updatedbabel-plugin-transform-es3-member-expression-literals@^6.8.0
Updatedbabel-plugin-transform-exponentiation-operator@^6.8.0
Updatedbabel-preset-react@^6.11.1