Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit b8e1b1c

Browse files
committed
require “react/react-source” in the unbrella file, might make the migration easier
1 parent 05b40c2 commit b8e1b1c

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

Rakefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ ENV['REAL_BUNDLE_GEMFILE'] = ENV['BUNDLE_GEMFILE']
99
require 'rspec/core/rake_task'
1010
require 'opal/rspec/rake_task'
1111

12-
require 'react/react-source'
13-
1412
RSpec::Core::RakeTask.new('ruby:rspec')
1513

1614
Opal::RSpec::RakeTask.new('opal:rspec') do |s, task|

config.ru

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ Bundler.require
44
require "opal/rspec"
55
require "opal-jquery"
66

7-
require 'react/react-source'
8-
97
if Opal::RSpec.const_defined?("SprocketsEnvironment")
108
sprockets_env = Opal::RSpec::SprocketsEnvironment.new
119
sprockets_env.cache = Sprockets::Cache::FileStore.new("tmp")

lib/reactive-ruby.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@
4949

5050
Opal.append_path File.expand_path('../', __FILE__).untaint
5151
Opal.append_path File.expand_path('../sources/', __FILE__).untaint
52+
require "react/react-source"
5253
end

lib/reactrb.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@
5050

5151
Opal.append_path File.expand_path('../', __FILE__).untaint
5252
Opal.append_path File.expand_path('../sources/', __FILE__).untaint
53+
require "react/react-source"
5354
end

0 commit comments

Comments
 (0)