refactor(metadata-route): extract make_route_entry_source helper, simplify HMR require pattern
Extract the repeated 5-line VirtualSource creation block into a shared
make_route_entry_source helper. Shorten the per-handler comment to a
single line and use optional chaining + nullish coalescing (?? / ?.)
instead of ternary for the multi-export (sitemap/image-with-metadata)
variants, reducing noise without changing behaviour.
Co-Authored-By:
Claude <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment