diff options
author | 2021-04-10 13:17:09 -0700 | |
---|---|---|
committer | 2021-04-10 13:17:31 -0700 | |
commit | 24f50220e12c8a6d6f2765c3b06fb9d2bee4d1b6 (patch) | |
tree | bbe8efe114023d388287eb29b1c8dc214ff96c73 /src/compiler/codegen.ts | |
parent | 4e7ae2075d3cc7d1a48776710f70273b133d03f3 (diff) | |
download | astro-24f50220e12c8a6d6f2765c3b06fb9d2bee4d1b6.tar.gz astro-24f50220e12c8a6d6f2765c3b06fb9d2bee4d1b6.tar.zst astro-24f50220e12c8a6d6f2765c3b06fb9d2bee4d1b6.zip |
update package.json
Diffstat (limited to 'src/compiler/codegen.ts')
-rw-r--r-- | src/compiler/codegen.ts | 4 |
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); } |