fix(lib/modules/finders/filters): skip already warned bad withDependencies filters

This commit is contained in:
PalmDevs 2026-01-24 18:14:56 +07:00
parent 4f120ea159
commit 8839d43a47
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -182,8 +182,10 @@ function DEBUG_warnBadWithDependenciesFilter(
// already warned
if (__DEBUG_WARNED_BAD_BY_DEPENDENCIES_FILTERS__.has(deps)) return
__DEBUG_WARNED_BAD_BY_DEPENDENCIES_FILTERS__.add(deps)
nativeLoggingHook(
`\u001b[33mBad ${withDependencies.name} filter, undefined ID at index ${index} (if intentional, set to null): [${depGenFilterKey(deps)}]\n${getCurrentStack()}\u001b[0m`,
`\u001b[33mBad withDependencies filter, undefined ID at index ${index} (if intentional, set to null): [${depGenFilterKey(deps)}]\n${getCurrentStack()}\u001b[0m`,
2,
)
}