5to6 / ideas

ideas for es5 to es6 transformers
3 stars 1 forks source link

Classes #3

Open xjamundx opened 9 years ago

xjamundx commented 9 years ago

some sort of sane automated way to upgrade to ES6 classes

rauchg commented 9 years ago

Worth considering that classes don't hoist, so a test for the following pattern is in order:

module.exports = Woot;
function Woot(){}
Woot.prototype.a = function(){}