Tools: Handle ES6 source

Created on 11 Feb 2016  路  12Comments  路  Source: Polymer/tools

All 12 comments

I dealing with this issue right now. I've created some components according to the article https://www.polymer-project.org/1.0/articles/es6.html and right now Polylint and my custom task in gulp do not work with my project.
Waiting for an update.

Is the aim to address all ES6 classes, or only those used to create a Polymer component?

Hello All, does this work? The official documentation, https://www.polymer-project.org/1.0/articles/es6.html, says it does. If it doesn't, could someone please highlight that it doesn't. I fear people will spend time looking at their non-faulty code wondering why it doesn't.

any update here? this really blocks ES6 adoption :S

I really need a fix for this. Used ES6 in about 30 components and now I recognize my project does not build for production. Vulcanize silently fails and I this is due to hydrolysis can't parse my elements.

@bastiion with this PR #244, the ES6 elements can be displayed through an iron-component-page, could you tell me if the vulcanize is ok too ?

+1 The same problem, any update? :(

@RoXuS with the current master branch of hydrolysis vulcanize runs well. Sorry for such a long time of silence, but I was very busy in my project.
Even doc-page generation works now using an iron-componnt-page, with the drawback of not using behaviors in "inconvenient" ways.
Debugging Hydrolysis always makes me ask...
What the hell is it necessary to parse the whole JavaScript source tree, relying on strict codestyle, rather than introduce a couple of comment macros?

There are other things not kosher in generating the doc. If there are multiple classes within the document, hydrolysis finds them as if they are elements, even though they are just declared classes living in the same scope as the elements class.
For the behavior bug I opened a new issue #251

We now handle ES6 source. Still growing our library of ES6 expressions that we support. Please file bugs with code that should work but isn't!

@rictic is there a place that documents / at least lists, the ES6 expressions and how they are analysed?

Yeah, check out the test/static for a few examples.

Was this page helpful?
0 / 5 - 0 ratings