Remove object-rest-spread syntax.

This commit is contained in:
Artem Yavorsky 2017-03-23 00:33:03 +02:00
parent 70354013f1
commit ddfb6f2c44
4 changed files with 339 additions and 351 deletions

View File

@ -9,14 +9,12 @@
"babel-types": "^6.23.0",
"babel-runtime": "^6.22.0",
"babel-template": "^6.23.0",
"babel-plugin-transform-strict-mode": "^6.22.0",
"babel-plugin-syntax-object-rest-spread": "^6.13.0"
"babel-plugin-transform-strict-mode": "^6.22.0"
},
"keywords": [
"babel-plugin"
],
"devDependencies": {
"babel-plugin-transform-object-assign": "6.22.0",
"babel-helper-plugin-test-runner": "^6.24.0"
}
}

View File

@ -1,6 +1,5 @@
import { basename, extname } from "path";
import template from "babel-template";
import babelPluginSyntaxObjectRestSpread from "babel-plugin-syntax-object-rest-spread";
import babelPluginTransformStrictMode from "babel-plugin-transform-strict-mode";
import * as t from "babel-types";
@ -129,8 +128,7 @@ export default function () {
}
};
return Object.assign(
{
return {
inherits: babelPluginTransformStrictMode,
visitor: {
@ -514,7 +512,5 @@ export default function () {
}
}
}
},
babelPluginSyntaxObjectRestSpread()
);
};
}

View File

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