-
-
Notifications
You must be signed in to change notification settings - Fork 28
Babel plugin support? #286
Copy link
Copy link
Closed
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels