Skip to content

Disable Buble transforms not needed for Node 4#411

Merged
Rich-Harris merged 2 commits intomasterfrom
disable-unneeded-buble-transforms
Mar 27, 2017
Merged

Disable Buble transforms not needed for Node 4#411
Rich-Harris merged 2 commits intomasterfrom
disable-unneeded-buble-transforms

Conversation

@Conduitry
Copy link
Copy Markdown
Member

Many of the transforms being done by Buble aren't required for Node 4. Disabling them is nicer, and also slightly decreases the size of the bundle - down from 385KB to 375KB.

@Rich-Harris
Copy link
Copy Markdown
Member

Good catch. We can actually get exactly the same result by using target: { node: 4 }, not sure why I didn't do that in the first place — added a commit. Slightly more futureproof (if we were to start using other ES6 features that Buble supports and Node 4 doesn't), and easier to drop support for Node 4 when the time comes.

@Rich-Harris Rich-Harris merged commit b9d3c23 into master Mar 27, 2017
@Rich-Harris Rich-Harris deleted the disable-unneeded-buble-transforms branch March 27, 2017 12:53
@Swatinem
Copy link
Copy Markdown
Member

drop support for Node 4

soon…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants