Remove unused @babel/runtime dependency#1445
Remove unused @babel/runtime dependency#1445Andarist merged 2 commits intochangesets:mainfrom bluwy:remove-unused-deps
@babel/runtime dependency#1445Conversation
🦋 Changeset detectedLatest commit: 5ffb038 The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1445 +/- ##
=======================================
Coverage 81.02% 81.02%
=======================================
Files 54 54
Lines 2213 2213
Branches 658 654 -4
=======================================
Hits 1793 1793
Misses 416 416
Partials 4 4 ☔ View full report in Codecov by Sentry. |
This is a little bit surprising to me cause our compilation target is pretty low: Line 6 in 4efc038 From what I can see this node version already supports things like object rest spread and classes so perhaps this is actually suspected. We don't use any fancy/esoteric new syntaxes that would usually require those helpers. |
|
After fiddling with https://github.com/Thinkmill/manypkg today too, I think I understand better now. The babel config is probably missing So I think we have 2 directions here:
I'm fine with either way. |
|
Tbf, im not that sure if Changesets would work today on such an old version of node. If we couod confirm that it doesnt… then we could bump the compilation target and drop this dependency |
Since the same question came up in #1446, I've already investigated this a bit. There are 9 dependencies of changesets that specify they only support Node 10 in their |
|
At times, those |
|
I haven't got the chance to test on node 8 and above since it's a hard to run them on macos arm (and nvm needs to compile them locally due to lack of prebuilt binaries). Maybe we can setup running CI on them to check it? In any case, I think this PR wouldn't be too bad if merged too. The dependencies are already unused today. |
|
The CI passes for me on Node 8, but running It fails trying to run |
|
Does it run on node 10? ;p |
|
As far as I can tell, it does run on Node 10. I don't have a GitHub token setup locally in order to be able to test it the whole way through I wonder if we should just remove babel? It doesn't really seem like it's necessary since object spreading has been fully supported since Node 8. This PR seems like a good first step |
|
Node 10 doesn't support optional chaining syntax. I'd like to be able to use it :P |

I might be doing something silly, but after checking the files, it doesn't look like
@babel/runtimeis used anywhere and indist, so I think we can remove it.I also:
human-idas dev dep inclifs-extrainget-dependents-graph@changesets/typesingitThey don't seem to be used in the published code. Even though these deps are used elsewhere in transitive deps in practice, I think it's nice to keep them concise if unused.