File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
packages/tailwindcss-intellisense/src/class-names Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import getVariants from './getVariants'
10
10
import resolveConfig from './resolveConfig'
11
11
import * as path from 'path'
12
12
import * as fs from 'fs'
13
+ import * as os from 'os'
13
14
import { getUtilityConfigMap } from './getUtilityConfigMap'
14
15
import glob from 'fast-glob'
15
16
import normalizePath from 'normalize-path'
@@ -38,6 +39,12 @@ export default async function getClassNames(
38
39
onlyFiles : true ,
39
40
absolute : true ,
40
41
suppressErrors : true ,
42
+ // fast-glob defaults concurrency to `os.cpus().length`,
43
+ // but this can be 0, so we override it here, ensuring
44
+ // that concurrency is at least 1. Fix is here but is
45
+ // currently unpublished:
46
+ // https://github.com/mrmlnc/fast-glob/pull/296
47
+ concurrency : Math . max ( os . cpus ( ) . length , 1 ) ,
41
48
} )
42
49
)
43
50
. map ( normalizePath )
You can’t perform that action at this time.
0 commit comments