Skip to content

Commit

Permalink
feat(babel-preset): enable Typescript 3.7 features
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiohgz committed Dec 3, 2019
1 parent 4ece83f commit e763c24
Show file tree
Hide file tree
Showing 3 changed files with 588 additions and 612 deletions.
2 changes: 1 addition & 1 deletion tools/babel-preset/lib/builder.js
Expand Up @@ -19,7 +19,7 @@ const defaultPlugins = ['@babel/proposal-class-properties', '@babel/proposal-obj

const typescriptRequirements = {
presets: ['@babel/typescript'],
plugins: [],
plugins: ['@babel/proposal-nullish-coalescing-operator', '@babel/proposal-optional-chaining'],
};

const getTranspiler = () => {
Expand Down
38 changes: 20 additions & 18 deletions tools/babel-preset/package.json
Expand Up @@ -26,28 +26,30 @@
"lib"
],
"dependencies": {
"@babel/cli": "7.7.0",
"@babel/core": "7.7.2",
"@babel/node": "7.7.0",
"@babel/plugin-proposal-class-properties": "7.7.0",
"@babel/cli": "7.7.4",
"@babel/core": "7.7.4",
"@babel/node": "7.7.4",
"@babel/plugin-proposal-class-properties": "7.7.4",
"@babel/plugin-proposal-decorators": "7.7.4",
"@babel/plugin-proposal-export-namespace-from": "7.5.2",
"@babel/plugin-proposal-function-sent": "7.7.0",
"@babel/plugin-proposal-json-strings": "7.2.0",
"@babel/plugin-proposal-numeric-separator": "7.2.0",
"@babel/plugin-proposal-export-namespace-from": "7.7.4",
"@babel/plugin-proposal-function-sent": "7.7.4",
"@babel/plugin-proposal-json-strings": "7.7.4",
"@babel/plugin-proposal-nullish-coalescing-operator": "7.7.4",
"@babel/plugin-proposal-numeric-separator": "7.7.4",
"@babel/plugin-proposal-object-rest-spread": "7.7.4",
"@babel/plugin-proposal-throw-expressions": "7.2.0",
"@babel/plugin-syntax-dynamic-import": "7.2.0",
"@babel/plugin-syntax-import-meta": "7.2.0",
"@babel/plugin-transform-async-to-generator": "7.7.0",
"@babel/plugin-transform-classes": "7.7.0",
"@babel/plugin-transform-runtime": "7.6.2",
"@babel/plugin-proposal-optional-chaining": "7.7.4",
"@babel/plugin-proposal-throw-expressions": "7.7.4",
"@babel/plugin-syntax-dynamic-import": "7.7.4",
"@babel/plugin-syntax-import-meta": "7.7.4",
"@babel/plugin-transform-async-to-generator": "7.7.4",
"@babel/plugin-transform-classes": "7.7.4",
"@babel/plugin-transform-runtime": "7.7.4",
"@babel/polyfill": "7.7.0",
"@babel/preset-env": "7.7.1",
"@babel/preset-react": "7.7.0",
"@babel/preset-env": "7.7.4",
"@babel/preset-react": "7.7.4",
"@babel/preset-typescript": "7.7.4",
"@babel/register": "7.7.0",
"@babel/runtime": "7.7.2",
"@babel/register": "7.7.4",
"@babel/runtime": "7.7.4",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.0.3",
"babel-jest": "24.9.0",
Expand Down

0 comments on commit e763c24

Please sign in to comment.