eduardoboucas / compat-report

🔌 A Developer Tools panel for flagging browser compatibility issues
https://addons.mozilla.org/en-US/firefox/addon/compat-report/
117 stars 10 forks source link

Javascript support #18

Open lefta opened 6 years ago

lefta commented 6 years ago

I must admit that this tool is awesome, I always wanted this kind of stuff.

I hacked it a little bit and found that there is no support for Javascript. This would make it the perfect pre-check tool to have an overlook on potential pitfalls on other browsers.

From the activity of the repository, I see that you (@eduardoboucas ) do not have a lot of time to spend on this project. I'm very interrested in it and would be glad to help you improve it on my free time, especially with this issue. If you have some clues where to start to bring Javascript support (which libraries could help, if you know some, and how to integrate it) this would buy me some time for actually implementing it.

eduardoboucas commented 6 years ago

Thank you!

You're right in saying that I don't have as much as time as I would like to work on this project, so I'm very happy to have someone else pitching in.

I think support for JavaScript will be a bit more challenging than CSS. It will probably involve something like Babel to transform the code into an AST and from there try to match features against compat data.

I haven't explored this option yet, to be completely honest, because I wanted to get great support for CSS first, before venturing into JavaScript. In any case, I'm more than happy to look at a possible implementation you may come up with, and to guide and help in any way I can.