diff --git a/CHANGELOG.md b/CHANGELOG.md index 60a86d3dc8..8195fd4701 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ # 11.0.0-rc.3 (Unreleased) +#### :nail_care: Polish + +- Add [`Bun`](https://bun.sh) to reserved names, so that modules named `Bun` don't clash with the globally exposed `Bun` object. https://github.com/rescript-lang/rescript-compiler/pull/6381 + #### :bug: Bug Fix - Fix issue with JSX V4 when component props have the default value with same name. https://github.com/rescript-lang/rescript-compiler/pull/6377 diff --git a/jscomp/ext/js_reserved_map.ml b/jscomp/ext/js_reserved_map.ml index ca47671b43..4d16fa4abb 100644 --- a/jscomp/ext/js_reserved_map.ml +++ b/jscomp/ext/js_reserved_map.ml @@ -71,6 +71,7 @@ let sorted_keywords = [| "BroadcastChannel"; "BrowserCaptureMediaStreamTrack"; "Buffer"; + "Bun"; "ByteLengthQueuingStrategy"; "CDATASection"; "CSS";