Add syntax-object-rest-spread as devDep for tests.

This commit is contained in:
Artem Yavorsky 2017-03-23 00:52:10 +02:00
parent ddfb6f2c44
commit f2f226b4f2
4 changed files with 12 additions and 2 deletions

View File

@ -15,6 +15,7 @@
"babel-plugin"
],
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.24.0"
"babel-helper-plugin-test-runner": "^6.24.0",
"babel-plugin-syntax-object-rest-spread": "^6.13.0"
}
}

View File

@ -0,0 +1 @@
export const { foo, ...bar } = {};

View File

@ -0,0 +1,5 @@
"use strict";
const { foo, ...bar } = {};
exports.foo = foo;
exports.bar = bar;

View File

@ -1,3 +1,6 @@
{
"plugins": ["external-helpers", ["transform-es2015-modules-commonjs", { "strict": true }]]
"plugins": [
"external-helpers",
"syntax-object-rest-spread",
["transform-es2015-modules-commonjs", { "strict": true }]]
}