Skip to content

Commit 0d8842b

Browse files
Update webpack assets status checker to use server bundle configuration
1 parent c6b0e1f commit 0d8842b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/react_on_rails/test_helper/webpack_assets_status_checker.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@ def stale_generated_files(files)
5050
def all_compiled_assets
5151
@all_compiled_assets ||= begin
5252
webpack_generated_files = @webpack_generated_files.map do |bundle_name|
53-
if bundle_name == ReactOnRails.configuration.react_client_manifest_file
54-
ReactOnRails::Utils.react_client_manifest_file_path
55-
else
56-
ReactOnRails::Utils.bundle_js_file_path(bundle_name)
53+
if bundle_name == ReactOnRails.configuration.server_bundle_js_file
54+
ReactOnRails::Utils.server_bundle_js_file_path
5755
end
5856
end
5957

0 commit comments

Comments
 (0)