Is there an easy way to set up Play Framework (2.4.x, the current stable version) to transpile ES6 assets to ES5 on the fly, similar to how you can set it up to use the closure compiler to minify Javascript?
相关问题
- How to toggle on Order in ReactJS
- PlayFramework: how to transform each element of a
- Does Babel transpile Map to be usable in IE11?
- What's the best way (ES6 allowed) to extract v
- Could not import the newly generated play framewor
相关文章
- Visual Studio 2015 JSX/ES2015 syntax highlighting
- Object property assignment with destructuring?
- Testing request with CSRF Token in Play framework
- Difference between nameFunction() {} and nameFunct
- How to map an abstract collection with jpa?
- When should I call Promise.resolve() directly?
- Static elements interactions
- redux-saga: How to create multiple calls/side-effe
sbt-web is the place to go when you need anything related to build client side assets in Playframework projects. There is a plugin listed that maybe can solve your problem: sbt-traceur. This plugin uses traceur-compiler to transpile ES6 assets to ES5.
Edit:
Apparently, there is also an unlisted plugin that uses BabelJS:
https://github.com/stonexx/sbt-babeljs