A custom UI5 Tooling task extension that converts JavaScript code to support older browsers using Babel and regenerator-runtime. Version 1.0.6 is stable with no recent updates. It integrates seamlessly into UI5 build pipelines, offering an alternative to manual transpilation setups. Key differentiator: it operates as a UI5 builder extension task, hooking into the build process after the replaceVersion task. Designed for OpenUI5 and SAPUI5 applications targeting legacy browser support. Note: it requires additional Babel configuration (e.g., presets) to function properly.
npm install ui5-task-babel-compileNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Adds the Babel compile task to UI5 build, targeting browsers with >1% global usage.
Use Babel 7 with @babel/core and @babel/preset-env; adjust configuration accordingly.
Install babel-core and regenerator-runtime explicitly.
Provide a valid babelConfig in ui5.yaml or a .babelrc file in the project root.
Use @babel/plugin-transform-runtime and @babel/runtime instead of regenerator-runtime.
npm install babel-core --save-dev
npm install regenerator-runtime --save
Add a .babelrc file or babelConfig in ui5.yaml configuration.