Skip to content

Conversation

@YusukeHirao
Copy link
Member

Summary

  • Fix glob filtering logic in getAssetGroup to use AND condition instead of OR
  • Previously, options.glob replaced compilerEntry.files entirely
  • Now options.glob filters the results of compilerEntry.files
  • This prevents compilers from being assigned regardless of file extension when using CLI glob patterns

Changes

  • Add picomatch dependency for high-performance glob matching
  • Update getAssetGroup to apply both glob patterns (AND condition)
  • Add unit tests for the AND condition filtering

Test plan

  • yarn lint passed
  • yarn build passed
  • yarn test passed (55 tests)

Previously, options.glob replaced compilerEntry.files entirely (OR condition).

Now options.glob filters the results of compilerEntry.files (AND condition).

This prevents compilers from being assigned regardless of file extension

when using CLI glob patterns.
@YusukeHirao YusukeHirao merged commit 162c327 into main Jan 8, 2026
1 check passed
@YusukeHirao YusukeHirao deleted the feat/assets-glob-and-filter branch January 8, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants