electrode
electrode copied to clipboard
feat: Add Webpack 5 filesystem cache support for Electrode SubApps
Enables webpack 5's persistent filesystem cache to work with Electrode's SubApp architecture by adding serialization support to SubAppHotAcceptDependency.
Changes:
- Added
serialize()anddeserialize()methods toSubAppHotAcceptDependency - Registered dependency with webpack's serialization utility
- Fixed
electrode-node-resolverto includeoptional-requireas direct dependency - Added conditional logging behind
VERBOSEflag
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=truebuild metrics showing 100% cache hit rate
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.