This task encompasses the work to enable ES6 syntax via Babel transpilation for functional and test code under src/. Code under src/ and webpack.config.js should be revised as part of this task at minimum to use import and export instead of require and module.exports.
|Open||None||T195473 [GOAL] Invest in the MobileFrontend & MinervaNeue frontend architecture|
|Resolved||Jdlrobson||T195475 [EPIC] Automate asset bundling in MobileFrontend|
|Resolved||Jdlrobson||T202753 Enable ES6 syntax for src/|
|Resolved||Jdlrobson||T203976 Guard against ES6 code getting into production accidentally|
Not a duplicate since this task adds a transpiler and the other is about linting. Respectfully disagree to wait on enabling this functionality. It could be a great help to porting, eliminate ES6 in dist/ concerns, and parallelize work. Let's chat when I get back!
T202746 has been updated to encompass transpiling (we can't do this without linting IMO - those two come together). My concern with doing this early is that we already have a lot of files to port over, each with their problems. From experience observing how we worked in the Popups, I think changing the syntax as the same time is super risky and I'd rather do that once the repo is in a better shape.
Let's definitely chat about when we get back. I'll keep this open until then.