lib/vite_ruby/config.rb in vite_ruby-3.8.3 vs lib/vite_ruby/config.rb in vite_ruby-3.9.0

- old
+ new

@@ -19,18 +19,14 @@ # Internal: Path to the manifest files generated by Vite and vite-plugin-ruby. def known_manifest_paths [ # NOTE: Generated by Vite when `manifest: true`, which vite-plugin-ruby enables. - 'manifest.json', + build_output_dir.join('.vite/manifest.json'), + # NOTE: Path where vite-plugin-ruby outputs the assets manifest file. - 'manifest-assets.json', - ].flat_map { |path| - [ - build_output_dir.join(".vite/#{ path }"), # Vite 5 onwards - build_output_dir.join(path), # Vite 4 and below - ] - } + build_output_dir.join('.vite/manifest-assets.json'), + ] end # Internal: Path to the manifest files generated by Vite and vite-plugin-ruby. def manifest_paths known_manifest_paths.select(&:exist?)