Skip to content

flow-parser/babel-plugin removes all comments #9543

Backlog

Description

@Dagur

If I run

babel --no-babelrc --retain-lines --presets @babel/preset-flow,@babel/preset-react SomeFile.jsx

I get the parsed file with comments included but if I add --plugins flow-parser/babel-plugin then all comments are stripped away.

This is bad because we rely on comments to provide context to translators (gettext puts them in the .pot file)

Flow version: 0.338.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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