erikringsmuth / app-router

Router for Web Components
https://erikringsmuth.github.io/app-router/
MIT License
610 stars 83 forks source link

Move codebase to ES6 with support for System.import'ing routes #153

Open jmalonzo opened 7 years ago

web-padawan commented 7 years ago

Sounds very interesting! Are you going to use a polyfill? Also wondering if that change would be compatible with Polymer.

jmalonzo commented 7 years ago

Yeah. System.import is also included in webpack@2.

I think might be worthwhile to split the build into polymer and non-polymer builds.

erikringsmuth commented 7 years ago

I'm all for this. HTML import seem like it's dead since Chrome is the only browser that supports it natively. I'd be happy seeing this converted to System.import, ES6 modules, and rip out all the Polymer animated pages stuff.

It's been a while since I've looked at the custom element spec. It might be worthwhile to get it up to custom elements 1.0 with ES6 classes and whatever else changed. The fewer polyfills needed in the end, the better!

itsMattShull commented 7 years ago

Does anyone have an update on an ES6 version?

jmalonzo commented 7 years ago

@derekshull no update yet but it shouldn't take that long to migrate.