Skip to content

Commit b2a8c7f

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ 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'
1313

14+
const { sync: globSync } = FastGlob
15+
1416
const IMPORTER_NAME = 'eslint-import-resolver-typescript'
1517

1618
const log = debug(IMPORTER_NAME)

0 commit comments

Comments
 (0)