diff --git a/packages/babel-plugin-syntax-typescript/src/index.js b/packages/babel-plugin-syntax-typescript/src/index.js index 1a87cfcef5..5dee6ceed1 100644 --- a/packages/babel-plugin-syntax-typescript/src/index.js +++ b/packages/babel-plugin-syntax-typescript/src/index.js @@ -1,7 +1,11 @@ export default function() { return { manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push("typescript"); + parserOpts.plugins.push( + "typescript", + "objectRestSpread", + "classProperties", + ); }, }; } diff --git a/packages/babel-preset-typescript/README.md b/packages/babel-preset-typescript/README.md index 1244a5bbf6..07eb49f216 100644 --- a/packages/babel-preset-typescript/README.md +++ b/packages/babel-preset-typescript/README.md @@ -5,7 +5,6 @@ This preset includes the following plugins: - [transform-typescript](https://babeljs.io/docs/plugins/transform-typescript/) -- [syntax-object-rest-spread](https://babeljs.io/docs/plugins/syntax-object-rest-spread/) ## Example diff --git a/packages/babel-preset-typescript/package.json b/packages/babel-preset-typescript/package.json index adc367ad9f..98c36eccfb 100644 --- a/packages/babel-preset-typescript/package.json +++ b/packages/babel-preset-typescript/package.json @@ -10,7 +10,6 @@ "typescript" ], "dependencies": { - "babel-plugin-syntax-object-rest-spread": "7.0.0-alpha.19", "babel-plugin-transform-typescript": "7.0.0-alpha.19" } } diff --git a/packages/babel-preset-typescript/src/index.js b/packages/babel-preset-typescript/src/index.js index 5ddd896df8..5abf7438d3 100644 --- a/packages/babel-preset-typescript/src/index.js +++ b/packages/babel-preset-typescript/src/index.js @@ -1,8 +1,7 @@ import transformTypeScript from "babel-plugin-transform-typescript"; -import syntaxObjectRestSpread from "babel-plugin-syntax-object-rest-spread"; export default function() { return { - plugins: [transformTypeScript, syntaxObjectRestSpread], + plugins: [transformTypeScript], }; }