{"library":"rollup-plugin-del","title":"rollup-plugin-del","description":"A Rollup plugin that deletes specified files or directories before or after a build, commonly used to clean the output directory (e.g., dist). Version 1.0.1, last updated 2022. It wraps the `del` package to support glob patterns and automatically falls back to Rollup's output dir/file. Lightweight, no external plugin dependencies. Differentiates from @rollup/plugin-clean by offering glob flexibility and automatic output detection.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-del"],"cli":null},"imports":["import del from 'rollup-plugin-del'","const del = require('rollup-plugin-del').default","import del from 'rollup-plugin-del'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport del from 'rollup-plugin-del';\nimport resolve from '@rollup/plugin-node-resolve';\nimport commonjs from '@rollup/plugin-commonjs';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'esm'\n  },\n  plugins: [\n    del(), // deletes dist before build\n    resolve(),\n    commonjs()\n  ]\n};","lang":"javascript","description":"Basic Rollup config that cleans the dist directory using default output detection before bundling.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}