玩框架 ES6->ES5 转译器?
Play framework ES6->ES5 transpiler?
是否有一种简单的方法来设置 Play Framework(2.4.x,当前的稳定版本)以将 ES6 资产动态转换为 ES5,类似于如何设置它以使用闭包编译器缩小 Javascript?
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 将 ES6 资产转换为 ES5。
编辑:
貌似还有一个未列出的插件使用了BabelJS:
是否有一种简单的方法来设置 Play Framework(2.4.x,当前的稳定版本)以将 ES6 资产动态转换为 ES5,类似于如何设置它以使用闭包编译器缩小 Javascript?
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 将 ES6 资产转换为 ES5。
编辑:
貌似还有一个未列出的插件使用了BabelJS: