Skip to content

Commit 58c9ad8

Browse files
committed
Try to fix server-bundle
1 parent 37994aa commit 58c9ad8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/dummy/client/app/packs/server-bundle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import './../generated/server-bundle-generated.js'; // eslint-disable-line import/extensions
33
// Shows the mapping from the exported object to the name used by the server rendering.
44
import * as ReactOnRails from 'react-on-rails';
5+
globalThis.ReactOnRails = ReactOnRails;
56
// Example of server rendering with no React
67
import HelloString from '../non_react/HelloString';
78

0 commit comments

Comments
 (0)