Skip to content

Babel loose setting #9068

Closed
Closed
@dimaqq

Description

@dimaqq

Having recently updated babel, I ran into the error:
'loose' mode configuration must be the same for both @babel/plugin-proposal-class-properties and @babel/plugin-proposal-private-methods

Good folks at babel/babel#11622 tracked it to create-react-app setting loose flag on class properties transform, while I've included shippedProposals into babel presets in my setup. I've never set anything to loose or "firm" explicitly.

The work-around, for me, was to add loose to preset flags.

I guess the question is:

  • should this be documented?
  • if someone tweaks babel settings, are they on their own and should eject?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions