-
Notifications
You must be signed in to change notification settings - Fork 123
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
remove core-js #167
remove core-js #167
Conversation
22a0bdb
to
eb47af2
Compare
eb47af2
to
73aebe1
Compare
@@ -50,7 +50,7 @@ | |||
"sideEffects": false, | |||
"main": "build/index.js", | |||
"scripts": { | |||
"build": "babel --out-dir build src --ignore src/__tests__", | |||
"build": "babel --out-dir build src --ignore src/__tests__ --source-maps --delete-dir-on-start --minified --no-comments", |
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.
Do we also need a NODE_ENV=production
?
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 don't think so, but I'll check.
Thanks, this is great! Do you mind also adding a note in the docs about the needed polyfills for older browser support moving forward after this change? And yes, to answer your question, I think to be safe we will consider this a major breaking change. |
Great idea. Happy to accept PRs for these as well (or at least an issue). |
Sure, I'll update the readme. |
f45d606
to
7beec4c
Compare
7beec4c
to
def4046
Compare
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.
Thanks! I might try and get a minor release out under v8 before merging this for a v9 release but approving and will hold for now 👍
|
Yes, looking to do a release this week hopefully. I want to land #168 as semver minor in v8 first |
@patrickskim @adi518 looks like #168 might not land this week so I've published this PR against
Try it out and please post back with any issues you come across. Thanks! |
@patrickskim @adi518 have you encountered any issues with this premajor? |
I haven't pushed to production with the new version yet, but it's ongoing. |
@tizmagik We were able to upgrade to |
v8.1.0 is released. I'll look to release a v9.0.0 next week or so with this change. Thanks again! |
We are about two weeks in production with |
RC v9.0.0-4 has been tagged, mind giving that a quick check and if all looks good I'll merge, tag and release this to mainline @adi518 @antciccone @patrickskim
|
Removing core js make the bundle size much smaller. 15.3kb and 2.42 when gzip. So far no issues, i will run the build on staging for a few days and wait the result. Thank you for pushing this @tizmagik 🎉 |
@tizmagik after few days of dogfooding and thus far, no issues. I think this release is good to go. 🚢It 🎉 |
Great, thanks @gedeagas ! |
Hey @bgergen do you think we can get CI going again? I'd love to have it test this PR before we merge/publish, if possible |
@tizmagik Yes! I'll try to get that setup tomorrow. Sorry, I've been swamped today getting ready for Olympics coverage. |
@tizmagik Working on figuring out why this isn't triggering a drone build. Maybe I missed something in the config to get it to run on a PR from a fork. |
Thanks @bgergen -- feel free to push directly to this branch |
Yay thank you everyone for all the hard work! 🎉 |
This is now released as v9.0.0 thanks again all! |
This PR removes
core-js
(ES polyfills) and leaves it outside the bundle of this package. Consumers should now add polyfills to their app if they need to support old browsers. I wonder whether it should be released as a new major version, WDYT?Other stuff this PR does:
@babel/cli
to latest minor (fixes some issues and adds--no-comments
flag).--minified
+--no-comments
) which lowers the bundle size even more.Next steps:
Use Webpack 5 or Rollup to build an ESM output, which will make this library treeshakeable, saving some more KBs for consumers. I suggest trying TSDX for this.
PS, Babel CLI docs aren't super updated, so better run
yarn babel -h
to see the latest options.