Skip to content

Babel plugin support? #286

@c-lliope

Description

@c-lliope

Hello! I'm trying out Flow on my Rails app, and I'm trying to set up ruby-babel-transpiler to strip out Flow type annotations.

There's an existing Babel plugin that can take care of this, but it doesn't look like it's available in ruby-babel-transpiler.

I've added this configuration to my config/application.rb file:

    config.react.jsx_transform_options = {
      "plugins" => ["transform-flow-strip-types"],
    }

And in the browser, I get an error:

ReferenceError: Unknown plugin "transform-flow-strip-types"

I'm curious - is there a plan to make babel plugins available through this project? Would they be packaged as separate gems? If so, what would the structure of those gems look like?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions