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

[@formatjs/cli] Doesn't support optional chaining #404

@vitomir-motion

Description

@vitomir-motion

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:

  1. Try to extract messages from any file containing optional chaining operators.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions