HMR (Hot Module Replacement) plugin for Rollup, leveraging SystemJS. Current stable version 0.1.1, released in Aug 2020. This is a proof-of-concept, not production-ready. It forces output format to 'system' during HMR and provides a dev server with proxy support. Key differentiator: it enables live reload and stateful HMR for Rollup-built apps, using SystemJS for module loading. However, it has limited maintenance and lacks support for Rollup 3+.
npm install rollup-plugin-hotVerified import paths — ran on the pinned version, not inferred.
Basic Rollup configuration with rollup-plugin-hot. Sets up HMR dev server on port 33440, watches for changes, and opens browser.
Do not rely on output format during development; use format: 'iife' only for production builds without HMR.
Use Rollup 2.x or find alternative HMR plugin for Rollup 3+.
Test thoroughly before using in production; consider alternatives like @rollup/plugin-replace or webpack for stable HMR.
Set randomPortFallback: false if you need a deterministic port.
Ensure all HMR-accepting modules have proper URLs; rely on full-page reload for other files.
Run: npm install --save-dev rollup-plugin-hot
Change to: import hmr from 'rollup-plugin-hot'
Downgrade Rollup to version 2.x.
Ensure output.dir or output.file is set; consider using single bundle output format.
No dependency data recorded yet.