UNPKG

vite-plugin-zephyr

Version:

Vite plugin for Zephyr

11 lines (10 loc) • 458 B
function normalizeEntrypoint(entrypoint) { let normalized = entrypoint.trim(); normalized = normalized.split('\\').join('/'); while(normalized.startsWith('./'))normalized = normalized.slice(2); while(normalized.startsWith('/'))normalized = normalized.slice(1); if (normalized.startsWith('dist/')) normalized = normalized.slice(5); return normalized; } export { normalizeEntrypoint }; //# sourceMappingURL=normalize-entrypoint.mjs.map