refactor: migrate legacy wire namespace to wrn
This commit is contained in:
@@ -21,7 +21,7 @@ import { mkdirSync, writeFileSync } from "node:fs";
|
||||
import { tmpdir } from "node:os";
|
||||
import { join, resolve } from "node:path";
|
||||
import { pathToFileURL } from "node:url";
|
||||
import { compileWireFile } from "@wrnexus/compiler";
|
||||
import { compileWrnFile } from "@wrnexus/compiler";
|
||||
import { createContext } from "@wrnexus/core";
|
||||
import type { Context } from "@wrnexus/core";
|
||||
import { getComponentControllerRuntime, getReactiveRuntime } from "@wrnexus/csr";
|
||||
@@ -61,7 +61,7 @@ export async function renderComponent(
|
||||
const dir = join(tmpdir(), "wrnexus-test");
|
||||
mkdirSync(dir, { recursive: true });
|
||||
const file = join(dir, `c${seq++}.ts`);
|
||||
writeFileSync(file, compileWireFile(source, file), "utf8");
|
||||
writeFileSync(file, compileWrnFile(source, file), "utf8");
|
||||
const mod = (await import(pathToFileURL(file).href)) as {
|
||||
render?: (props: Record<string, unknown>) => string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user