Sha256: 5b012395519ba01aa406c1cc7962e0574eb7e75e3e2cc95d8668e32a451fa92c

Contents?: true

Size: 878 Bytes

Versions: 33

Compression:

Stored size: 878 Bytes

Contents

// entry file for the server side rendering environment (ssr)
// import npm modules that are only valid to use in the server side rendering environment
// for example modules which depend on objects provided by node js
import ReactDOMServer from 'react-dom/server';
global.ReactDOMServer = ReactDOMServer;
import { StaticRouter, Link, NavLink, Route, Switch } from 'react-router-dom';
// global.History = History;
global.Router = StaticRouter;
global.Link = Link;
global.NavLink = NavLink;
global.Route = Route;
global.Switch = Switch;
import WebSocket from 'ws';
global.WebSocket = WebSocket;
// import modules common to browser and server side rendering (ssr)
// environments from application_common.js
import './application_common.js';

import init_app from 'isomorfeus_loader.rb';
init_app();
global.Opal.load('isomorfeus_loader');

if (module.hot) { module.hot.accept(); }

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
isomorfeus-1.0.0.zeta25 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta24 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta23 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta22 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta21 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta20 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta19 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta18 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta17 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta16 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta15 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta14 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta13 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta12 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta11 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta10 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta9 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta8 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-1.0.0.zeta6 lib/isomorfeus/installer/templates/application_ssr.js.erb
isomorfeus-installer-1.0.0.zeta5 lib/isomorfeus/installer/templates/application_ssr.js.erb