summaryrefslogtreecommitdiff
path: root/packages/astro/src/vite-plugin-load-fallback/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro/src/vite-plugin-load-fallback/index.ts')
-rw-r--r--packages/astro/src/vite-plugin-load-fallback/index.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/astro/src/vite-plugin-load-fallback/index.ts b/packages/astro/src/vite-plugin-load-fallback/index.ts
index 6a37af223..76ca4e2bd 100644
--- a/packages/astro/src/vite-plugin-load-fallback/index.ts
+++ b/packages/astro/src/vite-plugin-load-fallback/index.ts
@@ -2,7 +2,6 @@ import nodeFs from 'fs';
import npath from 'path';
import slashify from 'slash';
import type * as vite from 'vite';
-import type { AstroSettings } from '../@types/astro';
type NodeFileSystemModule = typeof nodeFs;
@@ -49,11 +48,11 @@ export default function loadFallbackPlugin({
try {
// Check to see if this file exists and is not a directory.
const stats = await fs.promises.stat(candidateId);
- if(!stats.isDirectory()) {
+ if (!stats.isDirectory()) {
return candidateId;
}
} catch {}
- }
+ }
let resolved = await this.resolve(id, parent, { skipSelf: true });
if (resolved) {