|
6 | 6 | Hyperstack.import 'browser/delay', client_only: true |
7 | 7 | Hyperstack.js_import 'react_ujs', defines: 'ReactRailsUJS' |
8 | 8 | Hyperstack.import 'hyper-component' # TODO: confirm this does not break anything. Added while converting hyperloop->hyperstack |
| 9 | +Hyperstack.import 'hyperstack/component/auto-import' # TODO: confirm we can cancel the import |
9 | 10 |
|
10 | 11 | if RUBY_ENGINE == 'opal' |
11 | 12 | require 'native' |
12 | 13 | require 'hyperstack/state/observer' |
13 | 14 | require 'hyperstack/internal/component/validator' |
14 | | - require 'react/element' |
| 15 | + require 'hyperstack/component/element' |
15 | 16 | require 'hyperstack/internal/component/react_wrapper' |
16 | 17 | require 'hyperstack/component' |
17 | 18 | require 'hyperstack/internal/component/should_component_update' |
|
21 | 22 | require 'hyperstack/ext/component/object' |
22 | 23 | require 'hyperstack/ext/component/number' |
23 | 24 | require 'hyperstack/ext/component/boolean' |
24 | | - require 'reactive-ruby/isomorphic_helpers' |
| 25 | + require 'hyperstack/component/isomorphic_helpers' |
25 | 26 | require 'hyperstack/component/react_api' |
26 | 27 | require 'hyperstack/internal/component/top_level_rails_component' |
27 | | - require 'reactive-ruby/version' |
| 28 | + require 'hyperstack/component/version' |
28 | 29 | else |
29 | 30 | require 'opal' |
30 | | - |
31 | 31 | require 'opal-activesupport' |
32 | | - require 'reactive-ruby/version' |
| 32 | + require 'hyperstack/component/version' |
33 | 33 | require 'hyperstack/internal/component/rails' |
34 | | - require 'reactive-ruby/isomorphic_helpers' |
35 | | - require 'reactive-ruby/serializers' |
| 34 | + require 'hyperstack/component/isomorphic_helpers' |
| 35 | + require 'hyperstack/ext/component/serializers' |
36 | 36 |
|
37 | 37 | Opal.append_path File.expand_path('../', __FILE__).untaint |
38 | 38 | require 'react/react-source' |
|
0 commit comments