Skip to content
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

ES6 Class / Module Support #18

Open
bvkimball opened this issue Feb 12, 2015 · 1 comment
Open

ES6 Class / Module Support #18

bvkimball opened this issue Feb 12, 2015 · 1 comment

Comments

@bvkimball
Copy link

Any chance we could get full es6 syntax support in devkit. It would be really cool to write:

class HomeView extends View {
    constructor() {
        //this would be your init function
     }
    // ...
}
@jwilm jwilm changed the title Feature Request: Full ES6 Syntax Support ES6 Class / Module Support Feb 12, 2015
@jwilm
Copy link
Contributor

jwilm commented Feb 12, 2015

ES6 support would be amazing. I expect this to be a pretty big feature since all of timestep, the devkit-core source, every module ever, and every game built on devkit uses the js.io class / module syntax. It might be possible to achieve with some "use 6to5" like thing in the code, especially if that can emit files with js.io style imports. Then, we can provide it on an opt in basis and alleviate any need for a complete migration (nearly impossible to do all at once). The backwards compatible thing could be added in any minor release of devkit, and we could potentially deprecate the old js.io style syntax when devkit-v3 becomes a thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants