π gulp-rollup-2 v2.1.0
Production-grade improvements to caching, error detection, and memory management.
β¨ New Features
Production-Grade Caching
- Stable cache key generation using
object-hashalgorithm - Improved incremental build performance
- More reliable cache invalidation
Duplicate Detection
- Automatic detection of duplicate input configurations
- Prevents multiple outputs targeting the same file
- Better error messages for configuration conflicts
Memory Management
- Automatic
bundle.close()after each build - Prevents memory leaks in long-running watch tasks
- Map-based caching with proper cleanup
π Bug Fixes
- Fixed sourcemap path resolution - Source paths now correctly resolved for accurate debugging
- Better error messages - More descriptive errors help identify configuration issues quickly
- Deep equality checks - Proper configuration comparison prevents subtle bugs
π§ Internal Improvements
- Modern async/await patterns throughout codebase
- Replaced custom equality with robust deep equality checking
- Improved code organization and maintainability
- Added
object-hash@^3.0.0dependency for stable cache keys
π¦ Dependencies
New:
object-hash@^3.0.0- Stable cache key generation
Updated:
- All peer dependencies remain compatible
π§ͺ Testing
All features validated with comprehensive test suite:
- β Basic bundling (57ms)
- β Multiple outputs (26ms for 3 formats)
- β Cache system (13ms builds with caching)
- β Duplicate detection (error handling verified)
- β Tree-shaking (40% code reduction confirmed)
- β Memory management (no leaks detected)
π Documentation
- Updated README with v2.1.0 features
- Added troubleshooting section
- Improved API documentation
- Added migration guide
β‘ Performance
- Cache performance: Consistent 13ms builds on cached inputs
- Tree-shaking: 31 lines β 19 lines (40% reduction)
- Memory usage: Stable with automatic cleanup
π Migration from v2.0.x
No breaking changes! v2.1.0 is fully backward compatible.
Just upgrade:
npm install gulp-rollup-2@latestπ Credits
Special thanks to the Gulp and Rollup communities for their continued support.
Full Changelog: v2.0.2...v2.1.0