Open
Description
Description
We often run into issues with using unsupported JavaScript functions. While there are Shims for some useful functions, it would be nice to be able to utilize newer JavaScript functionality and not have to find work-arounds or write a new Shim.
For example: the Build Tools do support Array.includes
(which was added in ECMAScript 2016) via a Shim, but it does not support the Number functions added in ES6 (ECMAScript 2015) (like .isInteger()
).
Maybe it'd be possible to integrate core-js into the Build Tools to polyfill new functions during transpilation? Next.js also uses it to polyfill. This would also remove the burden of creating and maintaining correct Shims.
Alternatives
- Write a lot of extra Shims
- Upgrade the JavaScript engine that is used in vRA itself to natively support this.
- Have vRA use cdnjs.cloudflare.com/polyfill/
- Have vRA use polyfill-fastly.io/