teambit / envs

Component development environments for the Bit community
https://bit.dev/bit/envs
Other
64 stars 9 forks source link

optionalChaining is not supported in React compiler #50

Closed JoshK2 closed 4 years ago

JoshK2 commented 4 years ago

Description

I have a component in React that uses this feature, and the compiler not support it.

Specifications

Context and additional information

I fork the compiler and added this babel plugin to solve it: https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining

JoshK2 commented 4 years ago

I fixed this in React compiler version 1.0.6 https://bit.dev/bit/envs/compilers/react?version=1.0.6 https://github.com/teambit/envs/pull/60