{"library":"rollup-plugin-watch","title":"rollup-plugin-watch","description":"A Rollup plugin to specify additional directories and files for Rollup to watch during dev mode, complementing Rollup's built-in watch mechanism. Version 1.0.5 (stable) requires Node >=16 and peer dependency rollup ^2.x.x || ^3.x.x || ^4.x.x. It ships TypeScript definitions. Key differentiator: allows watching external assets not imported in code, preventing unnecessary dev server restarts. Low maintenance, minimal API surface (dir, include, exclude).","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-watch"],"cli":null},"imports":["import watch from 'rollup-plugin-watch'","const watch = require('rollup-plugin-watch')","import type { RollupWatchOptions } from 'rollup-plugin-watch'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import watch from 'rollup-plugin-watch';\n\nexport default {\n  input: 'index.js',\n  output: { file: 'dist/index.js', format: 'esm' },\n  plugins: [\n    watch({\n      dir: 'public',\n      include: ['**/*.html', '**/*.css'],\n      exclude: ['node_modules/**']\n    })\n  ]\n};","lang":"typescript","description":"Shows basic usage: watch a directory with include/exclude patterns for non-imported assets.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}