Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
chore: add support for optional chaining and coalescing operator (#2317)
Browse files Browse the repository at this point in the history
* chore: add support for optional chaining and coalescing operator

* fix config

* remove duplicates
  • Loading branch information
layershifter committed Feb 5, 2020
1 parent db4661e commit c8959a7
Show file tree
Hide file tree
Showing 14 changed files with 911 additions and 202 deletions.
2 changes: 2 additions & 0 deletions build/babel/index.js
Expand Up @@ -31,7 +31,9 @@ module.exports = api => {
]
const plugins = [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-nullish-coalescing-operator',
['@babel/plugin-proposal-object-rest-spread', { loose: true, useBuiltIns: true }],
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-syntax-dynamic-import',
['@babel/plugin-transform-runtime', { useESModules }],

Expand Down
20 changes: 11 additions & 9 deletions build/package.json
Expand Up @@ -4,15 +4,17 @@
"license": "MIT",
"private": true,
"dependencies": {
"@babel/core": "^7.6.4",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.6.3",
"@babel/preset-react": "^7.6.3",
"@babel/preset-typescript": "^7.6.0",
"@babel/register": "^7.4.4",
"@babel/standalone": "^7.3.2",
"@babel/core": "^7.7.7",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.7.4",
"@babel/plugin-proposal-optional-chaining": "^7.7.5",
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
"@babel/plugin-transform-runtime": "^7.7.6",
"@babel/preset-env": "^7.7.6",
"@babel/preset-react": "^7.7.4",
"@babel/preset-typescript": "^7.7.7",
"@babel/register": "^7.7.7",
"@babel/standalone": "^7.7.7",
"@fluentui/eslint-plugin": "^0.44.0",
"@mdx-js/loader": "^1.0.21",
"@types/babel__traverse": "^7.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/accessibility/package.json
Expand Up @@ -5,7 +5,7 @@
"author": "Oleksandr Fediashov <olfedias@microsoft.com>",
"bugs": "https://github.com/microsoft/fluent-ui-react/issues",
"dependencies": {
"@babel/runtime": "^7.1.2",
"@babel/runtime": "^7.7.6",
"keyboard-key": "^1.0.1",
"lodash": "^4.17.15"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/docs-components/package.json
Expand Up @@ -5,7 +5,7 @@
"author": "Oleksandr Fediashov <a@fedyashov.com>",
"bugs": "https://github.com/microsoft/fluent-ui-react/issues",
"dependencies": {
"@babel/runtime": "^7.1.2",
"@babel/runtime": "^7.7.6",
"copy-to-clipboard": "^3.2.0",
"object.values": "^1.1.0",
"prismjs": "^1.16.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-bindings/package.json
Expand Up @@ -5,7 +5,7 @@
"author": "Oleksandr Fediashov <a@fedyashov.com>",
"bugs": "https://github.com/microsoft/fluent-ui-react/issues",
"dependencies": {
"@babel/runtime": "^7.1.2",
"@babel/runtime": "^7.7.6",
"@fluentui/accessibility": "^0.44.0",
"@fluentui/state": "^0.44.0",
"@fluentui/styles": "^0.44.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-component-event-listener/package.json
Expand Up @@ -5,7 +5,7 @@
"author": "Oleksandr Fediashov <a@fedyashov.com>",
"bugs": "https://github.com/microsoft/fluent-ui-react/issues",
"dependencies": {
"@babel/runtime": "^7.1.2",
"@babel/runtime": "^7.7.6",
"prop-types": "^15.7.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-component-nesting-registry/package.json
Expand Up @@ -5,7 +5,7 @@
"author": "Oleksandr Fediashov <a@fedyashov.com>",
"bugs": "https://github.com/microsoft/fluent-ui-react/issues",
"dependencies": {
"@babel/runtime": "^7.1.2",
"@babel/runtime": "^7.7.6",
"prop-types": "^15.7.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-component-ref/package.json
Expand Up @@ -5,7 +5,7 @@
"author": "Oleksandr Fediashov <olfedias@microsoft.com>",
"bugs": "https://github.com/microsoft/fluent-ui-react/issues",
"dependencies": {
"@babel/runtime": "^7.1.2",
"@babel/runtime": "^7.7.6",
"prop-types": "^15.7.2",
"react-is": "^16.6.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-proptypes/package.json
Expand Up @@ -5,7 +5,7 @@
"author": "Oleksandr Fediashov <olfedias@microsoft.com>",
"bugs": "https://github.com/microsoft/fluent-ui-react/issues",
"dependencies": {
"@babel/runtime": "^7.1.2",
"@babel/runtime": "^7.7.6",
"lodash": "^4.17.15",
"prop-types": "^15.7.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Expand Up @@ -5,7 +5,7 @@
"author": "Levi Thomason <me@levithomason.com>",
"bugs": "https://github.com/microsoft/fluent-ui-react/issues",
"dependencies": {
"@babel/runtime": "^7.1.2",
"@babel/runtime": "^7.7.6",
"@fluentui/accessibility": "^0.44.0",
"@fluentui/react-bindings": "^0.44.0",
"@fluentui/react-component-event-listener": "^0.44.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/state/package.json
Expand Up @@ -5,7 +5,7 @@
"author": "Oleksandr Fediashov <a@fedyashov.com>",
"bugs": "https://github.com/microsoft/fluent-ui-react/issues",
"dependencies": {
"@babel/runtime": "^7.1.2"
"@babel/runtime": "^7.7.6"
},
"devDependencies": {
"@fluentui/internal-tooling": "^0.44.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/package.json
Expand Up @@ -5,7 +5,7 @@
"author": "Marija Najdova <mnajdova@gmail.com>",
"bugs": "https://github.com/microsoft/fluent-ui-react/issues",
"dependencies": {
"@babel/runtime": "^7.1.2",
"@babel/runtime": "^7.7.6",
"csstype": "^2.6.7",
"lodash": "^4.17.15"
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/package.json
Expand Up @@ -10,7 +10,7 @@
"projrefs": "just-scripts projrefs"
},
"dependencies": {
"@babel/core": "^7.6.4",
"@babel/core": "^7.7.7",
"@storybook/addon-a11y": "^5.2.5",
"@storybook/addon-actions": "^5.2.5",
"@storybook/addon-info": "^5.2.5",
Expand Down

0 comments on commit c8959a7

Please sign in to comment.