perf: lazy-load editor runtime

Issue: #337
User-Visible: yes
This commit is contained in:
Matysh
2026-08-28 08:29:44 +03:00
parent 4a61407282
commit 59be9c8565
83 changed files with 32499 additions and 26465 deletions
+2 -1
View File
@@ -16,6 +16,7 @@ import {
} from '../test-build/wall-segment-model.js';
import { wallKey } from '../test-build/wall-thickness.js';
import { GRID_STEP_N } from '../test-build/space-geometry.js';
import { readHouseplanProductionSource } from './houseplan-source.mjs';
const rectangle = (id, x1 = 0, y1 = 0, x2 = 1, y2 = 1) => ({
id,
@@ -377,7 +378,7 @@ test('initial migration resolves a reserved deterministic id with the documented
});
test('every frontend structural transaction crosses the wall identity barrier', () => {
const source = readFileSync(new URL('../src/houseplan-card.ts', import.meta.url), 'utf8');
const source = readHouseplanProductionSource();
const optimizer = readFileSync(new URL('../src/plan-optimizer.ts', import.meta.url), 'utf8');
const methodSource = (name) => {
const start = source.indexOf(`private ${name}(`);