build: consolidate typed frontend module graph
This commit is contained in:
+2
-5
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user