Skip to content

Commit

Permalink
Cache template dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
martenlienen committed Mar 28, 2014
1 parent 5bc6002 commit b86b5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browserify-rails/browserify_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def asset_dependencies(asset_paths)

# @return [<String>] Paths of files, that this file depends on
def dependencies
run_browserify("--list").lines.map(&:strip).select do |path|
@dependencies ||= run_browserify("--list").lines.map(&:strip).select do |path|
# Filter the temp file, where browserify caches the input stream
File.exists?(path)
end
Expand Down

0 comments on commit b86b5f6

Please sign in to comment.