compat-report icon indicating copy to clipboard operation
compat-report copied to clipboard

Javascript support

Open lefta opened this issue 6 years ago • 1 comments

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.

lefta avatar Jun 03 '18 11:06 lefta

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.

eduardoboucas avatar Jun 05 '18 10:06 eduardoboucas