From d7b76b9638005632363d676f07cff327dd4167ef Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Thu, 18 Jan 2024 18:20:25 -0500 Subject: [PATCH] fix: vite warning on load-astro-config --- packages/db/src/load-astro-config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/db/src/load-astro-config.ts b/packages/db/src/load-astro-config.ts index ebe7d7ddb2..b1a8cf01b4 100644 --- a/packages/db/src/load-astro-config.ts +++ b/packages/db/src/load-astro-config.ts @@ -45,7 +45,9 @@ function search(root: string) { async function loadConfigWithVite(configPath: string): Promise> { if (/\.[cm]?js$/.test(configPath)) { try { - const config = await import(pathToFileURL(configPath).toString() + '?t=' + Date.now()); + const config = await import( + /* @vite-ignore */ pathToFileURL(configPath).toString() + '?t=' + Date.now() + ); return config.default ?? {}; } catch (e) { // We do not need to throw the error here as we have a Vite fallback below