ui5-community / babel-plugin-transform-modules-ui5

A Babel transformer plugin for OpenUI5/SAPUI5. It allows you to develop UI5 applications by using the latest ECMAScript or TypeScript, including new syntax and objective oriented programming technology.
MIT License
34 stars 16 forks source link

fix: ensure template to be ES5 compliant #111

Closed petermuessig closed 1 year ago

petermuessig commented 1 year ago

Although Promise is no ES5 functionality, it is more about the JavaScript syntax. Promise could be polyfilled but Arrow functions can't be used in ES5 code. Therefore, the plugin generates syntactical ES5 code via its templates.