class ViteRuby::Manifest

def react_refresh_preamble

Public: The content of the preamble needed by the React Refresh plugin.
def react_refresh_preamble
  if dev_server_running?
    <<~REACT_REFRESH
      <script type="module">
        #{ react_preamble_code }
      </script>
    REACT_REFRESH
  end
end