Skip to content

Commit f5d9a56

Browse files
committed
chore: transpile object shorthand syntax for node 4 compatibility
1 parent 2278230 commit f5d9a56

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.babelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"transform-flow-strip-types",
55
"transform-es2015-destructuring",
66
"transform-es2015-parameters",
7+
"transform-es2015-shorthand-properties",
78
"transform-es2015-spread",
89
"transform-async-to-generator",
910
"transform-strict-mode",

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
### Chore & Maintenance
88

99
- `[website]` Switch domain to https://jestjs.io ([#6549](https://github.com/facebook/jest/pull/6549))
10+
- `[*]` Transpile object shorthand into Node 4 compatible syntax ([#6582](https://github.com/facebook/jest/pull/6582))
1011

1112
## 23.2.0
1213

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"babel-plugin-transform-es2015-destructuring": "^6.23.0",
1212
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
1313
"babel-plugin-transform-es2015-parameters": "^6.23.0",
14+
"babel-plugin-transform-es2015-shorthand-properties": "^6.24.1",
1415
"babel-plugin-transform-es2015-spread": "^6.22.0",
1516
"babel-plugin-transform-flow-strip-types": "^6.18.0",
1617
"babel-plugin-transform-inline-imports-commonjs": "^1.2.0",

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ [email protected], babel-plugin-transform-es2015-para
10021002
babel-traverse "^6.24.1"
10031003
babel-types "^6.24.1"
10041004

1005-
[email protected], babel-plugin-transform-es2015-shorthand-properties@^6.22.0, babel-plugin-transform-es2015-shorthand-properties@^6.5.0, babel-plugin-transform-es2015-shorthand-properties@^6.8.0:
1005+
[email protected], babel-plugin-transform-es2015-shorthand-properties@^6.22.0, babel-plugin-transform-es2015-shorthand-properties@^6.24.1, babel-plugin-transform-es2015-shorthand-properties@^6.5.0, babel-plugin-transform-es2015-shorthand-properties@^6.8.0:
10061006
version "6.24.1"
10071007
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0"
10081008
dependencies:
@@ -1324,7 +1324,7 @@ babel-template@^6.16.0, babel-template@^6.24.1, babel-template@^6.26.0:
13241324
babylon "^6.18.0"
13251325
lodash "^4.17.4"
13261326

1327-
babel-traverse@^6.14.1, babel-traverse@^6.18.0, babel-traverse@^6.24.1, babel-traverse@^6.25.0, babel-traverse@^6.26.0:
1327+
babel-traverse@^6.0.0, babel-traverse@^6.14.1, babel-traverse@^6.18.0, babel-traverse@^6.24.1, babel-traverse@^6.25.0, babel-traverse@^6.26.0:
13281328
version "6.26.0"
13291329
resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee"
13301330
dependencies:
@@ -1338,7 +1338,7 @@ babel-traverse@^6.14.1, babel-traverse@^6.18.0, babel-traverse@^6.24.1, babel-tr
13381338
invariant "^2.2.2"
13391339
lodash "^4.17.4"
13401340

1341-
babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0:
1341+
babel-types@^6.0.0, babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0:
13421342
version "6.26.0"
13431343
resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497"
13441344
dependencies:

0 commit comments

Comments
 (0)