From ce521dae8a27f3c5dc113512a0d43a7ef0deaebb Mon Sep 17 00:00:00 2001 From: tecvan <84165678+Tecvan-fe@users.noreply.github.com> Date: Wed, 30 Jul 2025 17:51:01 +0800 Subject: [PATCH] fix: fix infinite loop causing startup failure in Windows environment (#335) --- frontend/config/tailwind-config/src/tailwind-contents.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/config/tailwind-config/src/tailwind-contents.ts b/frontend/config/tailwind-config/src/tailwind-contents.ts index 2cb02259..588ee4ce 100644 --- a/frontend/config/tailwind-config/src/tailwind-contents.ts +++ b/frontend/config/tailwind-config/src/tailwind-contents.ts @@ -13,10 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + import path from 'path'; -import glob from 'fast-glob'; import { lookupSubPackages, getPackageLocation, @@ -44,8 +43,7 @@ export const getTailwindContents = (projectRoot: string) => { contents.push( ...packageLocations .filter(r => !!r) - .map(location => path.resolve(location, 'src/**/*.{ts,tsx}')) - .filter(pattern => glob.sync(pattern).length > 0), + .map(location => path.resolve(location, 'src/**/*.{ts,tsx}')), ); // 兼容 coze-design 内部 tailwind 样式