Skip to content

Commit 011f5f4

Browse files
committedMar 19, 2015
Ensure we’re asking for the js version
1 parent be9499f commit 011f5f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎lib/opal/sprockets/processor.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def evaluate(context, locals, &block)
8585
end
8686

8787
def self.load_asset_code(sprockets, name)
88-
asset = sprockets[name]
88+
asset = sprockets[name.sub(/(\.js)?$/, '.js')]
8989
module_name = -> asset { asset.logical_path.sub(/\.js$/, '').inspect }
9090

9191
non_opal_assets = ([asset]+asset.dependencies).select do |a|

0 commit comments

Comments
 (0)
Please sign in to comment.