robatwilliams / es-compat

*** DEPRECATED*** Check JavaScript code compatibility with target runtime environments
MIT License
65 stars 13 forks source link

Provide suggestions on how to make code more widely compatible (CLI) #6

Closed robatwilliams closed 3 years ago

robatwilliams commented 4 years ago

You might be willing to avoid using some features (or polyfill them if non-syntax) in order to widen compatibility.

The CLI could provide suggestions on this.

(feature follows-on from #5)

$ npx check-es-compat -- --widen source.js
✔ Chrome 80+
    73+ without
      nullish coalescing operator (??)
    earlier without
      Object.fromEntries [or polyfill]
...
robatwilliams commented 3 years ago

Doesn't sound that useful