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

Upgrade to babel 7 and update packages #10

Merged
merged 2 commits into from
Oct 10, 2019
Merged

Upgrade to babel 7 and update packages #10

merged 2 commits into from
Oct 10, 2019

Conversation

kobawan
Copy link
Contributor

@kobawan kobawan commented Oct 8, 2019

In order for packages using babel 7 to be able to transpile vmap's library code, this package also needs to be updated to babel 7.

Had to fix destructuring of NodeLists, as that should not be possible, and after upgrading to babel 7 it threw errors. Since I removed destructuring, the polyfills have also been automatically removed by babel.

Bonus: updated other packages versioning.

BREAKING CHANGE!!!

@kobawan kobawan added the bug label Oct 8, 2019
@kobawan kobawan self-assigned this Oct 8, 2019
Comment on lines 34 to 35
const cdatas = [];
for (const childKey in node.childNodes) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const cdatas = [];
for (const childKey in node.childNodes) {
const childNodes = node.childNodes;
for (const childKey in childNodes) {

As node.childNodes is used sevral time in the code shoud use local var, because accessing with node.childNodes could be bad in performance in a big VMAP.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Contributor

@rumesh rumesh left a comment

Choose a reason for hiding this comment

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

🚢

@kobawan kobawan merged commit c55b6f2 into master Oct 10, 2019
@kobawan kobawan deleted the babel7 branch October 10, 2019 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants