This commit is contained in:
2023-09-07 22:35:52 +08:00
parent 5bb051e446
commit 55ed784f2b

View File

@@ -8,6 +8,12 @@ const LIST: string[] = [
];
function get_url(i: string) {
if (i.startsWith("preact-material-components/")) {
return i.replace(
"preact-material-components/",
"https://esm.sh/[email protected]/",
);
}
for (const v of Object.getOwnPropertyNames(map)) {
if (v.endsWith("/") && i.startsWith(v)) {
return i.replace(v, map[v]);