Sha256: 3ff65a5469c3db288527bc89e3843d30784246d0e330f4e87e8ef51ca52b8d20

Contents?: true

Size: 611 Bytes

Versions: 8

Compression:

Stored size: 611 Bytes

Contents

if RUBY_ENGINE == 'opal'
  %x{
    var ms = [
      "Warning: `react/react-source` is deprecated, ",
      "use `react/react-source-browser` or `react/react-source-server` instead."
    ]
    console.error(ms.join(""));
  }
  require 'react.js'
  require "react-server.js"
else
  require "react/config"
  require "react/rails/asset_variant"
  react_directory = React::Rails::AssetVariant.new(
    addons: true,
    variant: React::Config.config[:environment].to_sym
  ).react_directory
  Opal.append_path react_directory.untaint
  Opal.append_path File.expand_path('../../react-sources/', __FILE__).untaint
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hyper-react-0.12.7 lib/react/react-source.rb
hyper-react-0.12.6 lib/react/react-source.rb
hyper-react-0.12.5 lib/react/react-source.rb
hyper-react-0.12.4 lib/react/react-source.rb
hyper-react-0.12.3 lib/react/react-source.rb
hyper-react-0.12.2 lib/react/react-source.rb
hyper-react-0.12.1 lib/react/react-source.rb
hyper-react-0.12.0 lib/react/react-source.rb