fix: address code review comments

- vite.config.ts: fix __dirname for ESM, add 1MB payload limit + JSON validation
- MapViewer.tsx: remove broken window.isTransforming checks, fix callback order
- EditorPage.tsx: derive undoCount from historyManager in handleTransformEnd
- package.json: support Node 20 or 22 in engines
This commit is contained in:
math-pixel
2026-04-27 14:21:50 +02:00
parent 3254291ba7
commit 2001955625
4 changed files with 49 additions and 25 deletions
-2
View File
@@ -252,8 +252,6 @@ export function EditorPage(): React.JSX.Element {
newMapNodes[nodeIndex] = updatedNode;
return { ...prev, mapNodes: newMapNodes };
});
setUndoCount((prev) => prev + 1);
console.log("Node transformed:", nodeIndex);
},
[sceneData],
);