Skip to content

Commit cbcbeed

Browse files
Romex91Judahmeek
authored andcommitted
fix tests; update CHANGELOG
1 parent a823bc0 commit cbcbeed

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ Please follow the recommendations outlined at [keepachangelog.com](http://keepac
1919
Changes since the last non-beta release.
2020

2121
#### Fixed
22+
- Reduced bundle size [PR 1697](https://github.com/shakacode/react_on_rails/pull/1697) by [Romex91](https://github.com/Romex91)
23+
- Migrated from CJS to ESM for more compact modules (~1KB improvement)
24+
- Split exports to 'react-on-rails/server' and 'react-on-rails/client' to avoid shipping React server-rendering to browsers (~14KB improvement).
2225
- Fix obscure errors by introducing FULL_TEXT_ERRORS [PR 1695](https://github.com/shakacode/react_on_rails/pull/1695) by [Romex91](https://github.com/Romex91).
2326
- Disable `esModuleInterop` to increase interoperability [PR 1699](https://github.com/shakacode/react_on_rails/pull/1699) by [alexeyr-ci](https://github.com/alexeyr-ci).
2427
- Resolved 14.1.1 incompatibility with eslint & made sure that spec/dummy is linted by eslint. [PR 1693](https://github.com/shakacode/react_on_rails/pull/1693) by [judahmeek](https://github.com/judahmeek).

lib/generators/react_on_rails/templates/base/base/app/javascript/packs/server-bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ReactOnRails from 'react-on-rails';
1+
import ReactOnRails from 'react-on-rails/server';
22

33
import HelloWorld from '../bundles/HelloWorld/components/HelloWorldServer';
44

node_package/tests/Authenticity.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ReactOnRails from '../src/ReactOnRails';
1+
import ReactOnRails from '../src/ReactOnRails.client';
22

33
const testToken = 'TEST_CSRF_TOKEN';
44

0 commit comments

Comments
 (0)