Skip to content

Commit e1b3661

Browse files
committed
Fix import from CJS lib
1 parent 7b6bfc3 commit e1b3661

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import debug from 'debug'
55
import type { FileSystem, ResolveOptions, Resolver } from 'enhanced-resolve'
66
import enhancedResolve from 'enhanced-resolve'
77
import { hashObject } from 'eslint-module-utils/hash.js'
8-
import { sync as globSync } from 'fast-glob'
8+
import FastGlob from 'fast-glob'
99
import { createPathsMatcher, getTsconfig } from 'get-tsconfig'
1010
import type { TsConfigResult } from 'get-tsconfig'
1111
import isCore from 'is-core-module'
1212
import isGlob from 'is-glob'
13+
const { sync: globSync } = FastGlob
1314

1415
const IMPORTER_NAME = 'eslint-import-resolver-typescript'
1516

0 commit comments

Comments
 (0)