babel-plugin-transform-modules-ui5
babel-plugin-transform-modules-ui5 copied to clipboard
fix(): fix #139 - autoConvertControllerClass to consider controller.t…
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.