feat: add plugin configResolved (#2055)
This commit is contained in:
+8
-1
@@ -290,13 +290,20 @@ export async function withFakeServe(
|
||||
) {
|
||||
const fixture = join(Deno.cwd(), name);
|
||||
const dev = basename(name) === "dev.ts";
|
||||
if (dev) {
|
||||
try {
|
||||
await Deno.remove(join(fixture, "_fresh"));
|
||||
} catch (_err) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
const manifestPath = toFileUrl(join(dirname(fixture), "fresh.gen.ts")).href;
|
||||
const manifestMod = await import(manifestPath);
|
||||
|
||||
const configPath = join(dirname(fixture), "fresh.config.ts");
|
||||
|
||||
let config = { dev };
|
||||
let config: FromManifestConfig = { dev };
|
||||
|
||||
// For now we load config on a case by case basis, because something in
|
||||
// twind (unsure) doesn't work well if multiple instances are running
|
||||
|
||||
Reference in New Issue
Block a user