Sha256: 459bb9bbcb392e0c421bb3c19a45d5ead77c2495a210731cb8dbab896c401698

Contents?: true

Size: 841 Bytes

Versions: 8

Compression:

Stored size: 841 Bytes

Contents

if RUBY_ENGINE == 'opal'
  require 'isomorfeus-react-base'
  require 'isomorfeus-react-component'
  require 'isomorfeus-react-redux-component'
  require 'isomorfeus-react-lucid'
else
  require 'oj'
  require 'opal'
  require 'opal-activesupport'
  require 'opal-browser'
  require 'isomorfeus-redux'
  require 'isomorfeus-speednode'
  require 'react/version'
  require 'isomorfeus/config'

  Isomorfeus.env = ENV['RACK_ENV']

  if Isomorfeus.env == 'production'
    Isomorfeus.server_side_rendering = true
  else
    Isomorfeus.server_side_rendering = false
  end

  require 'isomorfeus/execution_environment'
  require 'isomorfeus/react_view_helper'

  Opal.append_path(__dir__.untaint)

  if Dir.exist?('isomorfeus')
    Opal.append_path(File.expand_path('isomorfeus')) unless Opal.paths.include?(File.expand_path('isomorfeus'))
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
isomorfeus-react-16.8.7 lib/isomorfeus-react.rb
isomorfeus-react-16.8.6 lib/isomorfeus-react.rb
isomorfeus-react-16.8.5 lib/isomorfeus-react.rb
isomorfeus-react-16.8.4 lib/isomorfeus-react.rb
isomorfeus-react-16.8.3 lib/isomorfeus-react.rb
isomorfeus-react-16.8.2 lib/isomorfeus-react.rb
isomorfeus-react-16.8.1 lib/isomorfeus-react.rb
isomorfeus-react-16.8.0 lib/isomorfeus-react.rb