-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop corejs #1824
Drop corejs #1824
Conversation
Codecov Report
@@ Coverage Diff @@
## chore/disableNotNeededBabel #1824 +/- ##
===============================================================
- Coverage 71.58% 71.57% -0.02%
===============================================================
Files 181 179 -2
Lines 13939 13905 -34
===============================================================
- Hits 9978 9952 -26
+ Misses 3328 3323 -5
+ Partials 633 630 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is YUGE! 👏
Did you run some benchmarks before/after? It would be good to know the difference and mention it in the release notes.
I didn't have time for that as well ... |
37add28
to
805c987
Compare
Everything but: - Promises that aren't really working - define/lookup getter/setter which are AnnexB - other stuff that aren't standard is now in goja, so there is no need for corejs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm OK with this, just two questions:
-
There are a lot of new errors in
breaking_test_errors.json
. Are we OK with them? I can't really tell whether they are important or not. -
Maybe for a separate PR, but could you document how
breaking_test_errors.json
is generated exactly? I followed thejs/tc39/README.md
, emptied it with{}
and ran the tests, but no JSON was generated, though I didn't wait for it to finish. Do you parse theout.log
and convert it to JSON? Exact commands would be helpful here.
Ideally, this will be automated (somewhat) one day, but currently, if you don't clean the file it will not work properly and I don't want to spend an afternoon fixing that, given that we will likely stop touching this that much after a few more changes. If anything I am more interested in optimizing it to be kind of "faster" but that will take longer and given that it will naturally become faster, the less babel is needed, I am more for trying to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Added a breaking change
tag, since we probably should at least mention this as a minor breaking change, despite the fact nobody will probably notice it. Please update the PR description with what you think the note in the release notes should be. Ideally now, while everything is still fresh in your mind.
@na-- I've updated the description |
Everything but:
is now in goja, so there is no need for corejs
Things that will break:
__defineGetter__
they were also added to the Ecmascript later in AnnexB so 🤷♂️bold
to make a bold HTML tag.The one thing that now going over this shim.js from the previous PR, which might give us trouble is that
flatten
was renamed toflat
somewhere along the proposal process. But corejs had it with the old name as that happened after that version. I think we shouldn't do anything and see if this actually breaks for users as this is 1 line change and will align with what is in browsers for example whereflatten
isn't defined.