{"id":15711727,"url":"https://github.com/jacksteamdev/rollup-plugin-empty-dir","last_synced_at":"2025-05-12T21:48:15.336Z","repository":{"id":40949031,"uuid":"186450815","full_name":"jacksteamdev/rollup-plugin-empty-dir","owner":"jacksteamdev","description":"Automatically empty output.dir before writing a new bundle.","archived":false,"fork":false,"pushed_at":"2023-03-02T23:40:43.000Z","size":1217,"stargazers_count":2,"open_issues_count":8,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-19T11:15:33.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacksteamdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-13T15:49:07.000Z","updated_at":"2022-07-08T07:02:35.000Z","dependencies_parsed_at":"2024-06-18T23:02:45.449Z","dependency_job_id":"c7a8ed10-b7ed-440e-bbb2-e6282e9efb18","html_url":"https://github.com/jacksteamdev/rollup-plugin-empty-dir","commit_stats":null,"previous_names":["bumble-org/rollup-plugin-empty-dir"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksteamdev%2Frollup-plugin-empty-dir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksteamdev%2Frollup-plugin-empty-dir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksteamdev%2Frollup-plugin-empty-dir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksteamdev%2Frollup-plugin-empty-dir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacksteamdev","download_url":"https://codeload.github.com/jacksteamdev/rollup-plugin-empty-dir/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253830085,"owners_count":21970990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T21:13:48.745Z","updated_at":"2025-05-12T21:48:15.318Z","avatar_url":"https://github.com/jacksteamdev.png","language":"JavaScript","readme":"\u003c!--\nTemplate tags: \nbumble-org\nrollup-plugin-empty-dir\nIMG_URL\n--\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https: //github.com/bumble-org/rollup-plugin-empty-dir\" rel=\"noopener\"\u003e\n  \u003cimg width=200px height=200px src=\"https://imgur.com/UY3Gb9s.png\" alt=\"rollup-plugin-empty-dir logo\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003erollup-plugin-empty-dir\u003c/h3\u003e\n\n\n\u003cdiv align=\"center\"\u003e\n\n[![npm (scoped)](https://img.shields.io/npm/v/rollup-plugin-empty-dir.svg)](https://www.npmjs.com/package/${}/rollup-plugin-empty-dir)\n[![GitHub last commit](https://img.shields.io/github/last-commit/bumble-org/rollup-plugin-empty-dir.svg)](https://github.com/bumble-org/rollup-plugin-empty-dir)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)\n[![TypeScript Declarations Included](https://img.shields.io/badge/types-TypeScript-informational)](#typescript)\n\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![Fiverr: We make Chrome extensions](https://img.shields.io/badge/Fiverr%20-We%20make%20Chrome%20extensions-brightgreen.svg)](https://www.fiverr.com/jacksteam)\n[![ko-fi](https://img.shields.io/badge/ko--fi-Buy%20me%20a%20coffee-ff5d5b)](https://ko-fi.com/K3K1QNTF)\n\n\u003c/div\u003e\n\n---\n\nAutomatically empty the `output.dir` folder before writing a new bundle. Useful for code splitting, where chunks with different hashes can accumulate from multiple builds.\n\n## Table of Contents\n\n- [Getting Started](#getting_started)\n- [Usage](#usage)\n- [Features](#features)\n\n## Getting started \u003ca name = \"getting_started\"\u003e\u003c/a\u003e\n\nUse this plugin with the bundler [Rollup](https://rollupjs.org/guide/en/).\n\n### Installation\n\n```sh\n$ npm i rollup-plugin-empty-dir -D\n```\n\n## Usage \u003ca name = \"usage\"\u003e\u003c/a\u003e\n\n```javascript\n// rollup.config.js\n\nimport { emptyDir } from 'rollup-plugin-empty-dir'\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'esm',\n  },\n  plugins: [emptyDir()]\n}\n```\n\nThis Rollup plugin has no options, it just empties the `dir` folder during the build process, right before Rollup writes any files.\n\n\n## Features \u003ca name = \"features\"\u003e\u003c/a\u003e\n\n### TypeScript Definitions \u003ca name = \"typescript\"\u003e\u003c/a\u003e\n\nTypeScript definitions are included, so no need to install an additional `@types` library!\n\n","funding_links":["https://ko-fi.com/K3K1QNTF"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacksteamdev%2Frollup-plugin-empty-dir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacksteamdev%2Frollup-plugin-empty-dir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacksteamdev%2Frollup-plugin-empty-dir/lists"}