Skip to content

Commit 2ac6512

Browse files
committed
fix form opal 1.2 opal-rails 2.0.x
1 parent 6da12f6 commit 2ac6512

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/hyperstack-config/lib/hyperstack/js_imports.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ def js_import(value, client_only: nil, server_only: nil, defines:)
1010
return if (server_only && !on_server) || (client_only && on_server)
1111
puts "client js_import #{value}"
1212
defines.each do |name|
13-
#puts "#{name}: #{`Opal.global[#{name}]`}"
14-
next unless `Opal.global[#{name}] === undefined`
13+
puts "#{name}" #": #{`Opal.global[#{name}]`}"
14+
next unless `Opal.global['#{name}'] === undefined`
1515
raise "The package #{name} was not found. Add it to the webpack "\
1616
"#{client_only ? 'client_only.js' : 'client_and_server.js'} manifest."
1717
end

0 commit comments

Comments
 (0)