UNPKG

443 BJavaScriptView Raw
1"use strict";exports.__esModule=true;exports.default=getAssetPathFromRoute;// Translates a logical route into its pages asset path (relative from a common prefix)
2// "asset path" being its javascript file, data file, prerendered html,...
3function getAssetPathFromRoute(route,ext=''){const path=route==='/'?'/index':/^\/index(\/|$)/.test(route)?`/index${route}`:`${route}`;return path+ext;}
4//# sourceMappingURL=get-asset-path-from-route.js.map
\No newline at end of file