Rollup plugin that automatically reloads the browser when watch mode detects changes to bundles. Current stable version is 1.2.1, with slow release cadence. Supports Rollup 3.x and 4.x, requires Node >= 18. It injects a small client-side script to trigger full page reloads, works with any server or file:// protocol. Differentiates from similar plugins (e.g., rollup-plugin-livereload) by its simplicity and zero external WebSocket dependencies in older versions.
npm install rollup-plugin-auto-reloadVerified import paths — ran on the pinned version, not inferred.
Basic Rollup config using autoReload plugin in watch mode to trigger browser refresh.
Upgrade Rollup to ^3.18.0 or ^4.0.0, or stay on rollup-plugin-auto-reload 0.x.
Use Rollup's --watch flag or add watch option in config.
Specify a fixed port in options to avoid confusion, especially in production-like setups.
Consider migrating to rollup-plugin-livereload or @rollup/plugin-livereload.
Run `npm install --save-dev rollup-plugin-auto-reload` in the project root.
Change `import autoReload from 'rollup-plugin-auto-reload'` to `import { autoReload } from 'rollup-plugin-auto-reload'`.Upgrade Rollup to version 3 or 4, or downgrade the plugin to 0.x.