HELP WANTED: ES6 Conversion Effort
See original GitHub issueHello pixi devs!
Thanks to this PR #2936 (shoutout to @leonardo-silva!) we have begun an effort to convert the code-base of Pixi.js to ES6. The purpose of this upgrade is to future-proof as well as make Pixi.js more maintainable. While the source will be ES6, we will continue to build to ES5-compatible JavaScript using Babel. But hopefully in the future we’ll be able to provide an ES6+ build.
Usually these types of changes are very challenging and difficult to pull off because of how distruptive they are to existing PRs and development, so ideally we’d like to get to stability as quickly as possible. So, we need your help!
There are a couple things that would be really useful if you’re looking to help:
- We have setup a dev-es6 branch and welcome PRs to that branch for those proficient with ES6. Particularly, looking for additional PRs to add more use of
const, fat arrows functions, and static getters. - We need help performance testing the Babel build to make sure we have not compromised any of the amazing Pixi-speed we have all come to love.
- We could use help smoke-testing the latest build on this branch (see below for build links). Please add this to your v4 projects and post if you find any issues.
- We could use help smoke-testing the documentation to make sure jsdoc still plays well with ES6 (see link below)
ES6 Builds http://s3-eu-west-1.amazonaws.com/pixi.js/dev-es6/pixi.js http://s3-eu-west-1.amazonaws.com/pixi.js/dev-es6/pixi.min.js
Documentation http://s3-eu-west-1.amazonaws.com/pixi.js/dev-es6/docs/index.html
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:43 (32 by maintainers)

Top Related StackOverflow Question
I’ll suggest to you guys to consider using TypeScript as part of this major rewrite/adaptation. Just some points about TypeScript:
I know this is not an easy chore, but I believe it can bring major benefits for the code base and the community. Cheers!
Thanks @englercj. Good list.