feat(client): stop transforming jsx extensions (#57177)

This commit is contained in:
Oliver Eyton-Williams
2024-11-18 06:59:13 +01:00
committed by GitHub
parent 56817b657f
commit 26d4b0ee44
2 changed files with 5 additions and 21 deletions
-13
View File
@@ -100,19 +100,6 @@ export function setContent(
};
}
export async function setExt(ext: string, polyP: Promise<ChallengeFile>) {
const poly = await polyP;
checkPoly(poly);
const newPoly = {
...poly,
ext,
path: poly.name + '.' + ext,
fileKey: poly.name + ext
};
newPoly.history = [...poly.history, newPoly.path];
return newPoly;
}
// This is currently only used to add back properties that are not stored in the
// database.
export function regeneratePathAndHistory(poly: ChallengeFile) {