build: consolidate typed frontend module graph

This commit is contained in:
sjg
2026-08-01 21:54:00 +02:00
parent 8aeca613aa
commit d929ad3bde
31 changed files with 9065 additions and 9152 deletions
@@ -3,9 +3,9 @@
// SPDX-License-Identifier: GPL-2.0-or-later
import assert from "node:assert/strict";
import { readFile } from "node:fs/promises";
import test from "node:test";
import vm from "node:vm";
import { bundleEntry } from "./bundle-entry.mjs";
test("local AIS track-symbol adapter renders immediately on first add", async () => {
const listeners = new Map();
@@ -34,10 +34,7 @@ test("local AIS track-symbol adapter renders immediately on first add", async ()
Util: { extend: Object.assign },
divIcon: (options) => options,
};
const source = await readFile(
new URL("../../assets/web/generated/leaflet-ais-tracksymbol.js", import.meta.url),
"utf8",
);
const source = await bundleEntry(new URL("../src/leaflet-ais-tracksymbol.ts", import.meta.url));
new vm.Script(source).runInNewContext({ L, console });
Object.assign(L.TrxAisTrackSymbol.prototype, {
onAdd: markerPrototype.onAdd,