Transpiling a Polymer Element
问题 I'm scaffolding Polymer 1.x Elements using $ polymer init . These elements are not Polymer applications . They are just elements. All my elements are coded in ES6. I'd like to transpile my elements down to ES5. Considering that $ polymer build does not support single Element projects, what solutions can I use to achieve the above? 回答1: Transpiling Polymer to es5 is done in 3 steps: Vulcanize your element(s) by inlining the script and CSS: vulcanize element.html --inline-script --inline-css >