Skip to content

Commit f1df764

Browse files
committed
Last refinement in bundle size explanation
1 parent c09ef15 commit f1df764

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_blogposts/2021-02-09-release-9-0.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ To prevent unnecessary complications, only use this feature when...
7878

7979
### Less Bundle Bloat when Adding ReScript
8080

81-
With each release, we keep a close eye on generating code that is optimized for tree-shaking. We believe we reached a milestone where ReScript doesn't add any bloat to your bundle-size (this is what we call our "zero-cost" philosophy).
81+
With each release we keep a close eye on generating code that is optimized for tree-shaking. We also believe that we reached a milestone where ReScript reliably produces output that has almost no impact on our final JS bundle-sizes (this is what we call our "zero-cost" philosophy).
8282

83-
Unlike many other compile-to-js languages, the bundled code is almost ReScript runtime free and the generated library code fits the tree-shaking principle very well.
83+
The bundled code is almost ReScript runtime free because our generated library code fits the tree-shaking principle really well. Tools like `esbuild` can easily drop unnecessary code and make sure that the final code stays lean.
8484

8585
We made a small [demo repo](https://github.com/bobzhang/zero-cost-rescript) and added the precompiled JS bundles to demonstrate what we've achieved. Check it out!
8686

0 commit comments

Comments
 (0)