Skip to content

Conversation

@vtumrukota
Copy link

@vtumrukota vtumrukota commented Dec 11, 2025

Edits the Superhuman Zen package to upgrade to Webpack v5!

  • Verified the test runner passes locally from the desktop running yarn zen

vtumrukota and others added 7 commits December 9, 2025 16:19
- Replace webpack-dev-server with webpack-dev-middleware
- Remove ExtendedAPIPlugin and NamedModulesPlugin (built-in to Webpack 5)
- Handle read-only stats.hash getter by creating new state object
- Handle SizeOnlySource assets that don't expose .source()
- Add debounce to prevent recompilation loops when workers reload
- Fix ZenWebpackClient reference and add reload loop prevention
- Update dependencies: webpack ^5, webpack-dev-middleware ^7
Remove verbose debug tracing logs that were added during webpack 5
migration debugging. Keep error/catch block logs for production use.

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

Co-Authored-By: Claude Opus 4.5 <[email protected]>
this.test = undefined
}

onExceptionThrown(opts) {
Copy link
Author

Choose a reason for hiding this comment

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

We now use Puppeteer's API rather than raw CDP

@vtumrukota vtumrukota changed the title Upgrade to Webpack v5 PLA-3576: Upgrade to Webpack v5 Dec 20, 2025
@linear
Copy link

linear bot commented Dec 20, 2025


// TODO: kill on fail
if (!this.browser) throw new Error('Browser not setup')
if (this.tab)
Copy link
Author

Choose a reason for hiding this comment

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

Let me know if we feel this is safe/can throw a warning here

@vtumrukota vtumrukota marked this pull request as ready for review December 20, 2025 01:18
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