Roger plugin to transpile ES6 code with BabelJS
gem "roger_babeljs"
mockup.serve do |server|
server.use RogerBabeljs::Middleware, {
match: [%r{/url/you/want/to/match/*\.js}],
babel_options: {
# ... Options to pass to Babel
}
}
end
Have a look at the CHANGELOG to see what's new.
MIT License, see LICENSE for more info.