weixin_39885469
weixin_39885469
2021-01-06 11:54

Add example of how to use babel or other transpilers

As many are using transpilers today, it would be nice with a some easy integration. Especially with a watch that transpiles on change, such that the web server is actually using the transpiled files.

该提问来源于开源项目:Polymer/polymer-starter-kit

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

6条回答

  • weixin_39890289 weixin_39890289 4月前

    More than direct integration with one transpiler, i'd love a hook (or even a note in the documentation) where we can put a .pipe() and toss in whatever we want (babel, typescript, coffeescript, etc...)

    点赞 评论 复制链接分享
  • weixin_39663593 weixin_39663593 4月前

    Babel would be a decent starting point though.

    点赞 评论 复制链接分享
  • weixin_39928106 weixin_39928106 4月前

    Imo, until Polymer has an official story around ES6, transpilation is something best covered in documentation or linking up to a repo demonstrating how to use Babel with Polymer Starter Kit.

    点赞 评论 复制链接分享
  • weixin_39601743 weixin_39601743 4月前

    Ref https://github.com/yeoman/generator-polymer/issues/181.

    mostly team meetings/internal discussions. Let me try to pull up a summary of notes for you this week.

    still interested :)

    点赞 评论 复制链接分享
  • weixin_39601743 weixin_39601743 4月前

    Imo, until Polymer has an official story around ES6, transpilation is something best covered in documentation or linking up to a repo demonstrating how to use Babel with Polymer Starter Kit.

    Sounds good.

    点赞 评论 复制链接分享
  • weixin_39601657 weixin_39601657 4月前

    https://github.com/PolymerElements/polymer-starter-kit/blob/master/docs/add-es2015-support-babel.md

    documented! Thanks all for the interest!

    点赞 评论 复制链接分享

相关推荐