You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Findus23 opened this issue
Apr 26, 2022
· 2 comments
Labels
RFCIndicates the issue is a request for comments where the author is looking for feedback.TaskIndicates an issue is neither a feature nor a bug and it's purely a "technical" change.
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 #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).
The text was updated successfully, but these errors were encountered:
Findus23
added
Task
Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
RFC
Indicates the issue is a request for comments where the author is looking for feedback.
labels
Apr 26, 2022
make matomo.js more modular and reduce it's size for people who don't need all features
This would be a very welcome improvement. We have a very basic use of Matomo. And 25.3 kB of gzipped JS is huge for our use-case. It would be awesome to have an official way to configure a Matomo instance as "minimal" and generate a matomo.js that would probably be closer to 1 kB.
RFCIndicates the issue is a request for comments where the author is looking for feedback.TaskIndicates an issue is neither a feature nor a bug and it's purely a "technical" change.
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 #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).
The text was updated successfully, but these errors were encountered: