Skip to content

Replace buble by babel #2050

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

Merged
merged 4 commits into from
Mar 25, 2025
Merged

Replace buble by babel #2050

merged 4 commits into from
Mar 25, 2025

Conversation

jdeniau
Copy link
Member

@jdeniau jdeniau commented Feb 19, 2025

buble was nice, but does compile the code to ES2015.
It's 2025 now, and a lot of browser does support "modern" features like classes.

BC Break notice

This is breaking as we do now transpile for modern browser only ("last 2 version" + "not dead").
This drop support for older browsers that have been supported until immutable v5. For example IE <= 12 or safari <= 8 are not supported anymore.
If you still need to support those old browser, then you MAY want to transpile the node_modules/immutable/dist/index.js file yourself. (and you are probably already doing that for a lot of other packages that dropped support of ES5 with tools like https://github.com/obahareth/are-you-es5 of by enable babel on all node_modules)

bundle size gain

For the record migrating to a modern codebase had a nice impact of the size of the built file (non-gzipped values) :

file before after
immutable.es.js 175ko 153ko
immutable.es.js (gzip) 37ko 33ko
immutable.js 197ko 164ko
immutable.min.js 67ko 58ko

@jdeniau jdeniau added this to the 6.0 milestone Feb 22, 2025
@jdeniau jdeniau force-pushed the replace-buble-by-babel branch from 994292a to 95dc7d6 Compare March 22, 2025 21:46
@jdeniau jdeniau changed the base branch from main to 6.x March 22, 2025 21:46
@jdeniau jdeniau force-pushed the replace-buble-by-babel branch 3 times, most recently from ad33ed6 to 075bb4b Compare March 25, 2025 22:38
@jdeniau jdeniau force-pushed the replace-buble-by-babel branch from 075bb4b to a3d2a26 Compare March 25, 2025 22:54
@jdeniau jdeniau force-pushed the replace-buble-by-babel branch from a3d2a26 to 817fe23 Compare March 25, 2025 22:56
@jdeniau jdeniau marked this pull request as ready for review March 25, 2025 23:14
@jdeniau jdeniau merged commit c036998 into 6.x Mar 25, 2025
5 checks passed
@jdeniau jdeniau deleted the replace-buble-by-babel branch March 25, 2025 23:22
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.

1 participant