ryanelian / ts-polyfill

Runtime polyfills for TypeScript libs, powered by core-js! :battery: :nut_and_bolt:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Still up to date?

sarink opened this issue · comments

This repo hasn't been touched in 2 years, is everything still up to date with the latest typescript lib configuration and core-js polyfills? If not, are there any alternatives?

I looked through, and it seems that the answer to your question isn't a yes-no answer. It's up to date for version 3.9 of TypeScript. That could mean it's up to date for version 4 as well - but that doesn't mean it is. I personally doubt that there will be much of a regression, but it's a hard call to make.

Of note is that the last few commits or so haven't changed much. Going back it was 861b766 ("Update libs to TypeScript 3.8.1-rc") that was the last commit to actually change what core-js libs were imported. Take this with a grain of salt, though: there's been a major version release of typescript since then, and from what I've seen it introduces a fair bit of breaking changes.

As for alternatives (I've been looking for my own project), it seems that there are two that really stand out:

  • Importing core-js or core-js-pure directly (manual lib selection)
  • Babel might be able to do that for you - but that means you'll be piping all tsc output through babel, and will greatly increase your devDependancies size.

Between those two (three if you include taking the risk of using this library in the current state), I'm presently unsure which is the better option (for my use case), or if there are any other viable options.