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: by default add "use strict" directive to sap.ui.define #115

Closed petermuessig closed 1 year ago

petermuessig commented 1 year ago

The "use strict" directive should also be added to each sap.ui.define callback function. Only in case the directive is present on the program node, it will not be added. The addition of the directive can be supressed with the option neverUseStrict.

Fixes #113