Skip to content

Conversation

@lightninglu10
Copy link
Contributor

Summary

This PR removes excessive debug logging from the webpack plugin that clutters user build output. These console.log statements are only useful during plugin development and should not be shown to end users during their production builds.

Changes

Removed the following debug console.log statements:

  • [CodePress] Plugin apply() called with options: - Plugin initialization logging
  • [CodePress] Skipping: isServer=true - Server build skip message
  • [CodePress] Skipping: dev=true - Dev mode skip message
  • [CodePress] Running in production mode, will build MODULE_MAP - Production mode entry message
  • [CodePress] Looking for @ alias in tsconfig: - TypeScript config path logging
  • [CodePress] Found paths block: - Path block detection logging
  • [CodePress] Added alias from tsconfig: - Alias mapping logging
  • [CodePress] No paths block found in tsconfig - Missing path block message
  • [CodePress] Using default Next.js alias: - Default alias fallback message

What's Kept

All console.warn statements are preserved, as these show actual warnings that users should see:

  • TypeScript config parsing errors
  • Missing module mappings
  • Missing main bundle warnings
  • Export tracing/mapping failures

Impact

This change makes the webpack plugin much quieter during user builds, only showing warnings when something actually needs attention. The plugin will continue to function identically, just without the debug noise.

🤖 Generated with Claude Code

Removes excessive console.log statements that clutter user build output:
- Plugin initialization and options logging
- Server/dev mode skip messages
- Production mode entry message
- TypeScript config path resolution logging
- Alias detection and mapping logs

These debug messages are unnecessary for end users and make build output
noisy. Keeping console.warn statements for actual warnings that users
should see (e.g., tsconfig parsing errors, missing main bundle).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❇️ CodePress Review Summary

👋 Hey team,

Overall the changes look great! No specific issues found.

Here's the quick rundown:

✅ Decision: APPROVE
The change removes only debug logging with no functional impact; risks are limited to reduced diagnosability and are non-blocking.

@lightninglu10 lightninglu10 merged commit 231960a into main Nov 29, 2025
8 checks passed
@lightninglu10 lightninglu10 deleted the fix/remove-debug-logging branch November 29, 2025 19:49
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