Skip to content

Commit

Permalink
Add support for shakapacker in server rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
scraton authored Feb 22, 2022
1 parent efd7c56 commit f1dc888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/react/server_rendering/webpacker_manifest_container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module ServerRendering
class WebpackerManifestContainer

begin
MAJOR, MINOR, PATCH, _ = Bundler.locked_gems.specs.find { |gem_spec| gem_spec.name == 'webpacker' }.version.segments
MAJOR, MINOR, PATCH, _ = Bundler.locked_gems.specs.find { |gem_spec| gem_spec.name == 'webpacker' || gem_spec.name == 'shakapacker' }.version.segments
rescue
MAJOR, MINOR, PATCH, _ = [0,0,0]
end
Expand Down

0 comments on commit f1dc888

Please sign in to comment.