jorgebucaran / classcat

Build a class attribute string quickly
MIT License
906 stars 22 forks source link

Using let instead of var #1

Closed quko8 closed 7 years ago

quko8 commented 7 years ago

var is so tricky. And i didn't know why you use var in ESNext script. + Using default values instead of ||

jorgebucaran commented 7 years ago

Hey @quko8,

Using let and default values would be lovely, but the library is actually written in ES5. The ES module syntax is transformed into an UMD bundle by rollup, but there is no compilation.

Cheers!

EDIT: Clarify.

jorgebucaran commented 7 years ago

If you have any other questions or something is not clear about my explanation, just let me know, I'd be happy to give you more examples.