detect_strategy

in lib/react/jsx/sprockets_strategy.rb [23:33]


      def detect_strategy
        sprockets_version = Gem::Version.new(Sprockets::VERSION)
        if sprockets_version >= Gem::Version.new('4.a')
          :register_processors
        elsif sprockets_version >= Gem::Version.new('3.0.0')
          :register_engine_with_mime_type
        else
          :register_engine
        end
      end