Custom UI5 project shim extension for babel polyfill dependencies.
As of Babel 7.4.0, @babel/polyfill has been deprecated in favor of directly including core-js/stable (to polyfill ECMAScript features) and regenerator-runtime/runtime (needed to use transpiled generator functions).
Using this project shim both dependencies can be easily consumed in your ui5 application.
Make sure your project is using the latest UI5 Tooling.
Custom project shim
Add the custom project shim and its peer dependencies as
dependencies to your project.
yarn add ui5-shim-babel-polyfill core-js-bundle regenerator-runtime
npm i ui5-shim-babel-polyfill core-js-bundle regenerator-runtime
Additionally the custom project shim its peer dependencies need to be manually defined in
ui5.dependencies in your project's
This will ensure both dependencies will be included once in your app and all required polyfills will be available for your transpiled code.