UNPKG

@gez/core

Version:

A high-performance microfrontend framework supporting Vue, React, Preact, Solid, and Svelte with SSR and Module Federation capabilities.

10 lines (9 loc) 254 B
export function pathWithoutIndex(i: Record<string, string>) { const s = '/index'; Object.entries(i).forEach(([k, v]) => { if (k.endsWith(s)) { k = k.substring(0, k.length - s.length); i[k] = v; } }); }