Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.

Upgrade babylon to v7 #63

Closed
wants to merge 1 commit into from

Conversation

mourner
Copy link

@mourner mourner commented Mar 15, 2018

Babylon v7 is WAY faster than the currently used version, and parsing to AST takes almost the whole time of remove-flow-types, so this upgrade would make all bundles that use this package much faster (e.g. it shaves off 400-500ms off the mapbox-gl-js bundle).

Babel v7 is nearing release and babylon@next is very stable (and fixes a huge bunch of issues), so I think it's safe to upgrade despite the beta status. No problem if you want to wait for the final release though.

@motiz88
Copy link
Contributor

motiz88 commented Feb 15, 2019

Thanks @mourner and apologies for how long it's taken us to look at this. The current plan for v2 of this package is to switch to the actual Flow parser rather than upgrade to Babel v7, and ultimately to use flow-parser-bin where available so build times should also improve.

@motiz88 motiz88 closed this Feb 15, 2019
@trashstack
Copy link

@motiz88 That sounds great!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants