Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support For ES6+ in Polymer Workflow #2436

Closed
karthickszen opened this issue Sep 13, 2015 · 1 comment
Closed

Add Support For ES6+ in Polymer Workflow #2436

karthickszen opened this issue Sep 13, 2015 · 1 comment

Comments

@karthickszen
Copy link

For a web framework that is 'designed to leverage the evolving web platform on modern browsers', the lack of support for ES6 is a contradiction in terms.

Is there any way right now for me to reuse ES6 classes and services inside a Polymer element class? Specifically, can we import ES6 classes into a Polymer class, using SystemJS, along the lines of Angular2? As far as transpilers are concerned, I'm partial to babel, but at this point, I'm open to anything that works.

@ebidel
Copy link
Contributor

ebidel commented Sep 14, 2015

We have a talk tomorrow at Polymer Summit for ES6 + Polymer :)
https://www.polymer-project.org/summit

Preemptively, here are a couple of resources:

Modules are the least baked and not even done at the spec level. The spec needs to define how HTML Imports + ES6 modules will work. They don't have an answer, so it's hard for us to make a recommendation as well. However, check out the Imports module definition that @justinfagnani put together (github.com/PolymerLabs/IMD). It uses HTML Imports to load component code and AMD-style syntax for defining deps.

Closing this as it's not an issue. But feel free to discuss more on the mailing list.

@ebidel ebidel closed this as completed Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants