Sha256: c535001ad27f472c3a2bba9639a55ac0eb833b789bb3613885f6d58bc7c5c977

Contents?: true

Size: 477 Bytes

Versions: 4

Compression:

Stored size: 477 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(React::Config.config).react_directory
  Opal.append_path react_directory.untaint
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hyper-react-1.0.0.lap24 lib/react/react-source.rb
hyper-react-1.0.0.lap23 lib/react/react-source.rb
hyper-react-1.0.0.lap22 lib/react/react-source.rb
hyper-react-1.0.0.lap21 lib/react/react-source.rb