joewalker / devtools.html

19 stars 7 forks source link

Use modern web technologies #17

Open nt1m opened 8 years ago

nt1m commented 8 years ago

I don't see why this can't use modern web technologies such as ES6 or CSS variables. Maybe the original code could use ES6/CSS vars, and the compiled code for chrome/safari/IE could use less awesome code.

jlongster commented 8 years ago

We already do use ES6 and babel compiles it out to ES5 to run everywhere. You can't do that with ES6 variables because it requires runtime support. For example, when switching themes, if you change a variable if needs to dynamically update all properties that use the variable.

At least that's how I think CSS variables work and why it's hard to polyfill them.

nt1m commented 8 years ago

@jlongster What about https://github.com/joewalker/devtools.html/commit/2a64c56611d4fd1523633f881a561e0c103356d0 ?

jsantell commented 8 years ago

Some files are just included in script tags and not ran through babel -- especially my commits, a collection of hacks to get a demo working in time