{% capture entry %}{% if page.layout and layout.jsEntry %}{{ layout.jsEntry }}{% elsif page.jsEntry %}{{ page.jsEntry }}{% else %}default{% endif %}{% endcapture %} {% vite_typescript_tag {{ entry }} %} {% capture legacyFile %}{% vite_asset_path {{ entry }}-legacy.ts %}{% endcapture %}