You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Changes since the last non-beta release.
20
20
21
21
#### Breaking
22
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). **Breaking change:** All dependencies running `require('react-on-rails')` will need to update to ESM `import ReactOnRails from 'react-on-rails'`.
23
+
- Migrated from CJS to ESM for more compact modules (~1KB improvement). **Breaking change:**Dropped CJS support. All dependencies running `require('react-on-rails')` will need to update to ESM `import ReactOnRails from 'react-on-rails'`.
24
24
- Add export option 'react-on-rails/client' to avoid shipping server-rendering code to browsers (~14KB improvement).
Copy file name to clipboardExpand all lines: node_package/src/ReactOnRails.full.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ import type {
9
9
importClientfrom'./ReactOnRails.client';
10
10
11
11
if(typeofwindow!=='undefined'){
12
-
console.log('ReactOnRails: Optimization opportunity: "react-on-rails" includes ~14KB of server-rendering code. Browser may not need it. See https://forum.shakacode.com/t/how-to-use-different-versions-of-a-file-for-client-and-server-rendering/1352 (requires sign in)');
12
+
console.log('Optimization opportunity: "react-on-rails" includes ~14KB of server-rendering code. Browsers may not need it. See https://forum.shakacode.com/t/how-to-use-different-versions-of-a-file-for-client-and-server-rendering/1352 (Requires creating a free account)');
0 commit comments