Skip to content
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

Bump core-js to v3.6.4 and Babel to 7.8.4 #906

Merged
merged 1 commit into from
Feb 6, 2020

Conversation

sebinsua
Copy link
Contributor

@sebinsua sebinsua commented Feb 5, 2020

We should upgrade core-js@2 to core-js@3 because the (1) the next major release of Babel will do so, and (2) there are many V8 de-optimizations in core-js@2 that have been fixed in core-js@3.

Note: Half-expecting there to be some kind of build issue, so opening a PR to see what's what.

We should upgrade core-js@2 to core-js@3 because the (1) the next major
release of Babel will do so, and (2) there are many V8 de-optimizations
in core-js@2 that have been fixed in core-js@3.

See: babel/babel#10746 (comment)
See: babel/babel#10746 (comment)
See: https://github.com/zloirock/core-js/blob/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md

We also bumped Babel to 7.8.4 because it was only after 7.4 that
core-js@3 was supported.

See: https://babeljs.io/blog/2019/03/19/7.4.0#core-js-3-7646-https-githubcom-babel-babel-pull-7646
@sebinsua
Copy link
Contributor Author

sebinsua commented Feb 5, 2020

@texodus It seems to pass the tests.

Screenshot 2020-02-05 at 14 30 35

@sebinsua sebinsua requested a review from texodus February 5, 2020 14:32
"repository": {
"type": "git",
"url": "https://github.com/finos/perspective"
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something weird about this diff since this is not where this property is within the current package.json.

@texodus
Copy link
Member

texodus commented Feb 5, 2020

@sebinsua Thanks for the PR!

I made a <perspective-workspace> chart of the bundle size impact on bl.ocks.org, which shows the impact of this PR on Perspective's bundle size is not significant, but measurable - perspective.wasm.worker.js, the WebWorker runtime for the WASM engine, seems particularly badly hit.

Screen Shot 2020-02-05 at 4 48 56 PM

@texodus
Copy link
Member

texodus commented Feb 6, 2020

Another view of this change via the upcoming flatten()
Screen Shot 2020-02-05 at 7 55 34 PM
Screen Shot 2020-02-05 at 7 56 22 PM
Screen Shot 2020-02-05 at 7 58 57 PM

@texodus texodus added internal Internal refactoring and code quality improvement JS labels Feb 6, 2020
Copy link
Member

@texodus texodus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

I noticed some irregularities in yarn.lock such duplicate @babel/core that traced back to the complete other end of the project as well ... so I will follow this up with a few tweaks to package.json to tighten these resolutions.

@texodus texodus merged commit f4996ed into finos:master Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Internal refactoring and code quality improvement JS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants