Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 595 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 595 Bytes

Roger BabelJS

Roger plugin to transpile ES6 code with BabelJS

 gem "roger_babeljs"

Use it in the server

  mockup.serve do |server|
    server.use RogerBabeljs::Middleware, {
      match: [%r{/url/you/want/to/match/*\.js}],
      babel_options: {
        # ... Options to pass to Babel
      }
    }
  end

Changes and versions

Have a look at the CHANGELOG to see what's new.

Contributors

View contributors

License

MIT License, see LICENSE for more info.