-
Notifications
You must be signed in to change notification settings - Fork 374
Expand file tree
/
Copy pathclient-bundle.js
More file actions
30 lines (26 loc) · 1.02 KB
/
client-bundle.js
File metadata and controls
30 lines (26 loc) · 1.02 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
import ReactOnRails from 'react-on-rails';
import 'bootstrap-loader';
// 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.jsx';
import RouterApp from '../bundles/comments/startup/ClientRouterApp.jsx';
import SimpleCommentScreen from '../bundles/comments/components/SimpleCommentScreen/SimpleCommentScreen.jsx';
import routerCommentsStore from '../bundles/comments/store/routerCommentsStore';
import commentsStore from '../bundles/comments/store/commentsStore';
import NavigationBarApp from '../bundles/comments/startup/NavigationBarApp.jsx';
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,
});
ReactOnRails.registerStore({
routerCommentsStore,
commentsStore,
});