@Findus23 opened this Issue on April 26th 2022 Member

matomo.js is quite a complex piece of software and essential for Matomo to work. But that means subtle bugs often slip in and either break things or at least annoy people with logged errors.
Therefore, I am wondering now that we are using typescript in Matomo, if it would be useful migrating matomo.js to typescript (while as a first step keeping the output absolutely identical). It would at the very least avoid bugs like https://github.com/matomo-org/matomo/issues/17926 and maybe also make future updates easier.
This could also allow in the future to make matomo.js more modular and reduce it's size for people who don't need all features. (even though I am not sure how would be the best way to do this as it works a lot easier when bundling the JS in the application than when publishing a JS file).

@justinvelluppillai commented on May 1st 2022 Contributor

That's a cool concept but it'd be a big undertaking I'd say.

Powered by GitHub Issue Mirror