We've already had a blip where we broke Popups for Internet Explorer because we used the const key word without a transpile step in our code (T174424). We easily fixed that and added some safeguard (an additional ESLint job on the distribution script) to stop that happening again.
As we adopt more modern JavaScript via transpiling we'll want to be additionally cautious that we don't inadvertently use unavailable JavaScript in our targetted environment eg. Object.assign
https://github.com/amilajack/eslint-plugin-compat
Spike outcomes
- A proof of concept demonstrating the feasibility of the idea.
- A recommendation of whether we go ahead with doing it