babel-plugin-transform-es2015-shorthand-properties
Advanced tools
Comparing version 6.18.0 to 6.22.0
{ | ||
"name": "babel-plugin-transform-es2015-shorthand-properties", | ||
"version": "6.18.0", | ||
"version": "6.22.0", | ||
"description": "Compile ES2015 shorthand properties to ES5", | ||
@@ -12,8 +12,8 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-shorthand-properties", | ||
"dependencies": { | ||
"babel-types": "^6.18.0", | ||
"babel-runtime": "^6.0.0" | ||
"babel-types": "^6.22.0", | ||
"babel-runtime": "^6.22.0" | ||
}, | ||
"devDependencies": { | ||
"babel-helper-plugin-test-runner": "^6.18.0" | ||
"babel-helper-plugin-test-runner": "^6.22.0" | ||
} | ||
} |
# babel-plugin-transform-es2015-shorthand-properties | ||
Compile ES2015 shorthand properties to ES5 | ||
> Compile ES2015 shorthand properties to ES5 | ||
## Example | ||
**In** | ||
```js | ||
var o = { a, b, c }; | ||
``` | ||
**Out** | ||
```js | ||
var o = { a: a, b: b, c:c }; | ||
``` | ||
**In** | ||
```js | ||
var cat = { | ||
getName() { | ||
return name; | ||
} | ||
}; | ||
``` | ||
**Out** | ||
```js | ||
var cat = { | ||
getName: function () { | ||
return name; | ||
} | ||
}; | ||
``` | ||
## Installation | ||
```sh | ||
$ npm install babel-plugin-transform-es2015-shorthand-properties | ||
npm install --save-dev babel-plugin-transform-es2015-shorthand-properties | ||
``` | ||
@@ -26,3 +60,3 @@ | ||
```sh | ||
$ babel --plugins transform-es2015-shorthand-properties script.js | ||
babel --plugins transform-es2015-shorthand-properties script.js | ||
``` | ||
@@ -29,0 +63,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2400
70
Updatedbabel-runtime@^6.22.0
Updatedbabel-types@^6.22.0