-
Notifications
You must be signed in to change notification settings - Fork 373
Expand file tree
/
Copy pathclient-bundle.js
More file actions
35 lines (30 loc) · 1.18 KB
/
client-bundle.js
File metadata and controls
35 lines (30 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import ReactOnRails from 'react-on-rails';
// eslint-disable-next-line import/no-webpack-loader-syntax
import 'expose-loader?exposes=$,jQuery!jquery';
import 'jquery-ujs';
import App from '../bundles/comments/startup/App';
import RouterApp from '../bundles/comments/startup/ClientRouterApp';
import SimpleCommentScreen from '../bundles/comments/components/SimpleCommentScreen/SimpleCommentScreen';
import routerCommentsStore from '../bundles/comments/store/routerCommentsStore';
import commentsStore from '../bundles/comments/store/commentsStore';
import NavigationBarApp from '../bundles/comments/startup/NavigationBarApp';
import Footer from '../bundles/comments/components/Footer/Footer';
import RescriptShow from '../bundles/comments/rescript/ReScriptShow.bs.js';
import '../assets/styles/application';
ReactOnRails.setOptions({
// traceTurbolinks: process.env.TRACE_TURBOLINKS, // eslint-disable-line no-undef
// process.env.TRACE_TURBOLINKS -> error: development is not defined
traceTurbolinks: true,
});
ReactOnRails.register({
App,
RouterApp,
NavigationBarApp,
SimpleCommentScreen,
Footer,
RescriptShow,
});
ReactOnRails.registerStore({
routerCommentsStore,
commentsStore,
});