Skip to content

Commit 5d8cb92

Browse files
committed
Update docs and changelog
1 parent 5770e00 commit 5d8cb92

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Changes since the last non-beta release.
2626
#### Added
2727

2828
- Configuration option `generated_component_packs_loading_strategy` to control how generated component packs are loaded. It supports `sync`, `async`, and `defer` strategies. [PR 1712](https://github.com/shakacode/react_on_rails/pull/1712) by [AbanoubGhadban](https://github.com/AbanoubGhadban).
29+
- The package now includes both ESM and CJS versions. [PR 1722](https://github.com/shakacode/react_on_rails/pull/1722) by [alexeyr-ci2](https://github.com/alexeyr-ci2).
2930

3031
### Removed (Breaking Changes)
3132

docs/release-notes/15.0.0.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ Major improvements to component and store hydration:
3030
- `:sync` - Loads scripts synchronously (default for Shakapacker < 8.2.0) (better to upgrade to Shakapacker 8.2.0 and use `:async` strategy)
3131
- Improves page performance by optimizing how component packs are loaded
3232

33+
### ESM Support
34+
35+
The package is now published in both ES Module and CommonJS formats.
36+
In the next major release we'll work on making it much more tree-shakable to reduce bundle size.
37+
In most cases you don't need to do anything to take advantage of that,
38+
but if you use `require('react-on-rails')` (or `'react-on-rails/...'`),
39+
consider replacing it by `import`.
40+
3341
## Breaking Changes
3442

3543
### Component Hydration Changes

0 commit comments

Comments
 (0)