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?
Hello! I'm trying out Flow on my Rails app, and I'm trying to set up
ruby-babel-transpilerto 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.rbfile:And in the browser, I get an error:
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?