Skip to content

Commit 9878c51

Browse files
committed
Try to fix server-bundle
1 parent 37994aa commit 9878c51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/react_on_rails/packs_generator.rb

+1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def create_server_pack
124124
def build_server_pack_content(component_on_server_imports, server_components, client_components)
125125
content = <<~FILE_CONTENT
126126
import * as ReactOnRails from 'react-on-rails';
127+
globalThis.ReactOnRails = ReactOnRails;
127128
128129
#{component_on_server_imports.join("\n")}\n
129130
FILE_CONTENT

0 commit comments

Comments
 (0)