You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#1768 - CSS module files (like HeavyMarkdownEditor.module.css)
were being processed as React components, creating invalid JavaScript
variable names with dots that caused build failures.
Changes:
- Add COMPONENT_EXTENSIONS regex to filter valid React component files
- Add filter_component_files method to exclude non-component files
- Update common/client/server component path methods to use filtering
- Add comprehensive tests for CSS module handling
- Ensure only .js, .jsx, .ts, .tsx files are processed as components
This prevents CSS modules and other non-React files from being
treated as components while maintaining backward compatibility.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments