This repository was archived by the owner on May 4, 2020. It is now read-only.

Description
Which package?
@formatjs/cli
Describe the bug
Current babel config of @formatjs/cli does not include @babel/plugin-proposal-optional-chaining.
To Reproduce
Steps to reproduce the behavior:
- Try to extract messages from any file containing optional chaining operators.
- See error:
Support for the experimental syntax 'optionalChaining' isn't currently enabled. Add @babel/plugin-proposal-optional-chaining (https://git.io/vb4Sk) to the 'plugins' section of your Babel config to enable transformation.
Expected behavior
The cli should support optional chaining in files it extracts messages from.
Additional context
I think this should be included, since the latest release of create-react-app supports optional chaining and nullish coalescing operators.