-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade source code and builds scripts to ES6/exnext #914
Comments
Something like https://lebab.io/ could help with converting the current code base into es6. |
I hadn't thought about trying to automatically convert code to es6, that could be interesting too, thanks for the tip Harry. |
Thanks @josdejong for creating this great library. |
Plans enough but time is the limiting factor here 😄 |
If we want to use es6 import/export statements we would need to first move all the |
Yes indeed, good point. I would also like to get rid of all the semicolons :) In total, it's quite some work, but I think we can do the migration in small steps, something like:
|
I want to setup an ES6 build script today, at first without any refactoring, basically move the code from lib to src. This means that any open pull requests will get merge conflicts but there is nothing big open at this moment except the |
See #1129 |
Implemented via #1129 |
I've played around a bit with lebab, it's impressive. Converting |
Am I correct in saying this is because lebab is expecting |
Yes exactly, that is one of the reasons (see related discussion #71). And there are other places where we simply have to refactor stuff like using |
lebab was of great help so far! Saved a lot of work refactoring |
math.js still uses ES5 as source code. It would be nice to be able to use ES6, since it has a lot of useful improvements like
const
/let
, arrow functions, etc.To be able to start using ES6 in the source code, we need to:
lib
tosrc
(need to plan this carefully, no open PR's)src
into ES5 code inlib
(for node.js)dist
such that it transpiles to ES5.Help would be welcome here.
The text was updated successfully, but these errors were encountered: