mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(client): stop transforming jsx extensions (#57177)
This commit is contained in:
committed by
GitHub
parent
56817b657f
commit
26d4b0ee44
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user