File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed
lib/generators/react_on_rails/templates/base/base/app/javascript/packs Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ Please follow the recommendations outlined at [keepachangelog.com](http://keepac
1919Changes 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
2427### [ 14.1.1] - 2025-01-15
Original file line number Diff line number Diff line change 1- import ReactOnRails from 'react-on-rails' ;
1+ import ReactOnRails from 'react-on-rails/server ' ;
22
33import HelloWorld from '../bundles/HelloWorld/components/HelloWorldServer' ;
44
Original file line number Diff line number Diff line change 1- import ReactOnRails from '../src/ReactOnRails' ;
1+ import ReactOnRails from '../src/ReactOnRails.client ' ;
22
33const testToken = 'TEST_CSRF_TOKEN' ;
44
Original file line number Diff line number Diff line change 66import { createStore } from 'redux' ;
77import React from 'react' ;
88import createReactClass from 'create-react-class' ;
9- import ReactOnRails from '../src/ReactOnRails' ;
9+ import ReactOnRails from '../src/ReactOnRails.client ' ;
1010
1111describe ( 'ReactOnRails' , ( ) => {
1212 expect . assertions ( 14 ) ;
You can’t perform that action at this time.
0 commit comments