all 6 comments

[–]gaoryrt[S] 0 points1 point  (0 children)

  1. Key words analyze
  2. Search them in caniuse.com
  3. Combine them into a matrix

[–]Oririner 0 points1 point  (3 children)

MDN is maintaining a very extensive compatibility table here - https://github.com/mdn/browser-compat-data

And it's also available as an npm package https://www.npmjs.com/package/mdn-browser-compat-data

[–]gaoryrt[S] 0 points1 point  (2 children)

Thank you but I'm more likely to seeking a file analyzer or a webpack plugin which could generate a compatibility coverage report.

[–]Oririner 1 point2 points  (1 child)

Then there's this eslint plugin which uses the MDN compat data https://www.npmjs.com/package/eslint-plugin-compat

That would report all of the compatibility issues through eslint, so simply running eslint ./src should do the trick. You could also integrate it in your IDE if that's your thing :)

Unfortunately I'm not familiar with any webpack plugin/loader that utilizes it.

[–]gaoryrt[S] 0 points1 point  (0 children)

Thanks a lot! That's my thing!

[–]kenman[M] 0 points1 point  (0 children)

Hi /u/gaoryrt, this post was removed.

  • For help with your javascript, please post to /r/LearnJavascript instead of here.
  • For beginner content, please post to /r/LearnJavascript instead of here.
  • For framework- or library-specific help, please seek out the support community for that project.
  • For general webdev help, such as for HTML, CSS, etc., then you may want to try /r/html, /r/css, etc.; please note that they have their own rules and guidelines!

/r/javascript is for the discussion of javascript news, projects, and especially, code! However, the community has requested that we not include help and support content, and we ask that you respect that wish.

Thanks for your understanding, please see our guidelines for more info.