ViteRuby::Manifest
Порт ViteRuby::Manifest (production-режим, без auto_build).
Constructors
instance
Sourcenew
SourceClass methods
entrypoints_dir
Sourcepublic_output_dir
SourceInstance methods
entries
path_for("application", type: :javascript) → "/vite/assets/x-hash.js"
react_preamble_code
React Refresh preamble (react_preamble_code гема, байты из оракула dev_react_preamble_code).
resolve_entries(names : Array(String)) : NamedTuple(scripts: Array(String), imports: Array(String), stylesheets: Array(String))
resolve_entries: scripts / modulepreload-импорты / css-чанки. В dev импортов и стилей нет — их резолвит браузер через dev-сервер (find_manifest_entry/react-preamble из гема).
resolve_entry_name используется и для текста ошибки отсутствия.
vite_client_src
Путь HMR-клиента (vite_client_src гема): prefix_asset_with_host = File.join("/", public_output_dir, "@vite/client") — с того же origin, через прокси (skip_proxy не поддержан).