babel-plugin-transform-modules-ui5
babel-plugin-transform-modules-ui5 copied to clipboard
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 technolog...
The following code of the babel-plugin-transform-typescript creates an empty export for modules https://github.com/babel/babel/blob/main/packages/babel-plugin-transform-typescript/src/index.ts#L399
As mentioned by @Elberet in #23 and #25, to benefit from other plugins transformation process, the plugin should run in the `Program#exit` phase. This ensures that e.g. custom code for...
Allow feature `moveControllerPropsToOnInit` to be overriden with a local annotation, per declaration
Hello, In our projects we always activate the feature `moveControllerPropsToOnInit=true` so that controls are assigned in `onInit `function time so that their programmatic configuration is possible. But some UI5 patterns,...
With the third argument FNMetaImpl of Object.extend the constructor of a metadata class can be specified. Instances of that class will be used to represent metadata for the newly created...
When calling sap.ui.base.Object.extend, it is possible to specify a custom metadata object as a third parameter: [https://ui5.sap.com/#/api/sap.ui.base.Object%23methods/sap.ui.base.Object.extend](url) It should be possible to set this also in the typescript definiton. (maybe...
Hello, I have a question regarding the process which converts all typescript files into UI5-Like JS files. It seems to me that basically every TypeScript files receives the `sap.ui.define` addition...
Hello, The option autoConvertControllerClass is implemented in: ` function shouldConvertClass(file, node, opts, classInfo) { ... if (/.*[.]controller[.]js$/.test(file.opts.filename) && opts.autoConvertControllerClass !== false) { return true; } ... return false; } `...
Fix for #139 . When using UI5 CLI with TypeScript integration according to newest best practices, the file name passed by Babel to the plugin is still the original one...
## In ts config ```json ... "experimentalDecorators": true, ... ``` ## in ts code ```typescript class BigButton extends Button { ... @someDecorator() fun1() {} ... } ``` ## What to...
In tsconfig.json, it is possible to add a path mapping configuration like this. ``` { "compilerOptions": { "paths": { "@/*": ["*"] }, ....... } } ``` It help to avoid...