Closed carnoxen closed 4 years ago
To support older browsers when porting. In order not to use transpilers.
To support older browsers when porting. In order not to use transpilers.
Is it necessary to consider older browser? Class support is available on all browser except IE.
Is it necessary to consider older browser? Class support is available on all browser except IE.
Not really necessary, and the devs could've included a transpiler in the editor so when you export you have the option of choosing. Heck, this repo could change to ES6 classes and provide transpiled files so we have a choice. Even you could clone this repo and change all them to ES6 classes and do it yourself if you want to.
Is it necessary to consider older browser? Class support is available on all browser except IE.
Not really necessary, and the devs could've included a transpiler in the editor so when you export you have the option of choosing. Heck, this repo could change to ES6 classes and provide transpiled files so we have a choice. Even you could clone this repo and change all them to ES6 classes and do it yourself if you want to.
I didn’t try using transpiler... but I will.
this engine is full of prototype-things, so it's hard to read. nw.js supports the class declaration, then why it wasn't written by es6 class?