Sha256: 449b67abe5e4efe10447f6e67b3a2866c353615bf857d1770a0eab0325a6087d

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

require 'hyperloop-config'
require 'hyper-component'
Hyperloop.import 'hyper-router/react-router-source'
Hyperloop.import 'hyper-router'
if RUBY_ENGINE == 'opal'
  no_source = `Opal.global.ReactRouter === undefined`
  if no_source
    error = <<-ERROR
No react-router.js Available.

A global `ReactRouter` must be defined before requiring 'hyper-router'.

To USE THE BUILT-IN SOURCE:
  add 'require \"hyper-router/react-router-source\"'
  immediately before the 'require \"hyper-router\" directive.

IF USING NPM/WEBPACK:
  add "react-router": "~2.4.0" to your package.json.)
    ERROR
    raise error
  end
  require 'active_support'
  require 'promise'
  require 'promise_extras'
  require 'react/router'
  require 'react/router/dsl'
  require 'react/router/dsl/route'
  require 'react/router/dsl/index'
  require 'react/router/dsl/transition_context'
  require 'react/router/history'
else
  require 'opal'
  require 'hyper-react'
  require 'react/router/version'

  Opal.append_path File.expand_path('../', __FILE__).untaint
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hyper-router-2.4.1 lib/hyper-router.rb