summaryrefslogtreecommitdiff
path: root/src/compiler/codegen.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/codegen.ts')
-rw-r--r--src/compiler/codegen.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/codegen.ts b/src/compiler/codegen.ts
index 031cc8ee2..be9493435 100644
--- a/src/compiler/codegen.ts
+++ b/src/compiler/codegen.ts
@@ -5,7 +5,7 @@ import type { JsxItem, TransformResult } from '../@types/astro';
import eslexer from 'es-module-lexer';
import esbuild from 'esbuild';
-import glob from 'tiny-glob/sync.js';
+import { fdir, PathsOutput } from 'fdir';
import path from 'path';
import { walk } from 'estree-walker';
import babelParser from '@babel/parser';
@@ -419,7 +419,7 @@ function compileModule(module: Script, state: CodegenState, compileOptions: Comp
if (cachedLookups.get(spec)) {
found = cachedLookups.get(spec) as string[];
} else {
- found = glob(spec, { cwd: path.dirname(state.filename), filesOnly: true });
+ found = new fdir().glob(spec).withFullPaths().crawl(path.dirname(state.filename)).sync() as PathsOutput;
cachedLookups.set(spec, found);
miniGlobCache.set(state.filename, cachedLookups);
}