Remove object-rest-spread syntax.
This commit is contained in:
parent
70354013f1
commit
ddfb6f2c44
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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()
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
@ -1 +0,0 @@
|
||||
export const { foo, ...bar } = {};
|
||||
@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
const { foo, ...bar } = {};
|
||||
exports.foo = foo;
|
||||
exports.bar = bar;
|
||||
Loading…
x
Reference in New Issue
Block a user