babel-plugin-transform-modules-ui5 icon indicating copy to clipboard operation
babel-plugin-transform-modules-ui5 copied to clipboard

fix(): fix #139 - autoConvertControllerClass to consider controller.t…

Open oliversviszt opened this issue 7 months ago • 0 comments

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 with extensions .ts (while the content is already JS as transpiled by previous steps of the Babel config). The plugin is explicitly checking for .controller.js and thus will not convert controller files to 'UI5 format'.

This fix adds .ts as an option in the regex checking the filename.

oliversviszt avatar Apr 12 '25 06:04 oliversviszt