I use <a href="https:&#x2F;&#x2F;babeljs.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;babeljs.io&#x2F;</a> to compile es6 code for production. It could support this kind of transformation though I&#x27;m not sure if it does by default.