Skip to content

Conversation

@kylejeske
Copy link
Member

Enables webpack 5's persistent filesystem cache to work with Electrode's SubApp architecture by adding serialization support to SubAppHotAcceptDependency.

Changes:

  • Added serialize() and deserialize() methods to SubAppHotAcceptDependency
  • Registered dependency with webpack's serialization utility
  • Fixed electrode-node-resolver to include optional-require as direct dependency
  • Added conditional logging behind VERBOSE flag

Benefits:

  • 2-3x faster dev server restarts (e.g., 2.1s vs 4.5s cold start)
  • ~99.9% cache hit rate on warm restarts
  • Significantly improved developer experience

Testing:

  • Verified cache serialization/deserialization works correctly
  • Confirmed subapps load properly with filesystem cache enabled
  • Tested with VERBOSE=true build metrics showing 100% cache hit rate

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@kylejeske kylejeske changed the title feature: Add Webpack 5 filesystem cache support for Electrode SubApps feat: Add Webpack 5 filesystem cache support for Electrode SubApps Nov 20, 2025
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.

4 participants