Sha256: d7a2d941b781b07628345c9b4716deb2a18796282dcb9ce6c6fccf65a5c3eca5

Contents?: true

Size: 548 Bytes

Versions: 11

Compression:

Stored size: 548 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"
  variant = Hyperloop.env.production? ? 'production' : 'development'
  react_directory = React::Rails::AssetVariant.new({environment: variant}).react_directory
  Opal.append_path react_directory.untaint
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
hyper-component-0.99.6 lib/react/react-source.rb
hyper-component-0.99.5 lib/react/react-source.rb
hyper-component-0.99.4 lib/react/react-source.rb
hyper-component-0.99.3 lib/react/react-source.rb
hyper-component-0.99.2 lib/react/react-source.rb
hyper-component-0.99.1 lib/react/react-source.rb
hyper-component-0.99.0 lib/react/react-source.rb
hyper-react-1.0.0.lap28 lib/react/react-source.rb
hyper-react-1.0.0.lap27 lib/react/react-source.rb
hyper-react-1.0.0.lap26 lib/react/react-source.rb
hyper-react-1.0.0.lap25 lib/react/react-source.rb