Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 0ed4ca5

Browse files
committed
fix(compiler/src/index): use fast-glob again for Vercel This may be temporary.
1 parent c8b3f1c commit 0ed4ca5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { createBuildIn } from '../../src/core/method/create-build-in-helper';
66
import { setBuildIn } from '../../src/core/method/set-build-in-helper';
77
import { globalBuildIn } from '../../src/core/method/global-build-in-helper';
88
import { rootBuildIn } from '../../src/core/method/root-build-in-helper';
9+
const FastGlob = require('fast-glob');
910

1011
function isStyleClass(filePath: string): boolean {
1112
const content = fs.readFileSync(filePath, 'utf8');
@@ -43,7 +44,7 @@ function isStyleClass(filePath: string): boolean {
4344
appRoot = path.join(process.cwd(), '../../');
4445
}
4546
const csstsPattern = [path.join(appRoot, '**/*.ts'), path.join(appRoot, '**/*.tsx')];
46-
const files = fs.globSync(csstsPattern);
47+
const files = await FastGlob(csstsPattern);
4748
const styleFiles = files.filter(file => {
4849
return isStyleClass(file);
4950
});

0 commit comments

Comments
 (0)