Sha256: e99d3977c3265f114cd70aae4d679373bded1e6db23b548c2bfa02894d215f98

Contents?: true

Size: 562 Bytes

Versions: 3

Compression:

Stored size: 562 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 "hyperstack/internal/component"
  require "react/rails/asset_variant"
  variant = Hyperstack.env.production? ? :production : :development
  react_directory = React::Rails::AssetVariant.new({ variant: variant }).react_directory
  Opal.append_path react_directory.untaint
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hyper-component-1.0.alpha1.8 lib/react/react-source.rb
hyper-component-1.0.alpha1.7 lib/react/react-source.rb
hyper-component-1.0.alpha1.6 lib/react/react-source.rb