{"library":"rollup-plugin-rename","title":"rollup-plugin-rename","description":"Rollup plugin that renames file paths before they are emitted, rewriting all imports and exports across the bundle to match the new names. Current version is 1.0.1, with a simple API: a map function transforms original file paths to new ones. Unlike other rename plugins, it supports include/exclude patterns and source map generation. Particularly useful when using preserveModules to restructure output directories. No ongoing maintenance activity observed since 2021.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-rename"],"cli":null},"imports":["import rename from '@betit/rollup-plugin-rename';","import type { IRenameExtensionsOptions } from '@betit/rollup-plugin-rename';","import rename from '@betit/rollup-plugin-rename';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import rename from '@betit/rollup-plugin-rename';\nimport { defineConfig } from 'rollup';\n\nexport default defineConfig({\n  input: 'src/index.ts',\n  preserveModules: true,\n  output: {\n    dir: 'dist',\n    format: 'es',\n  },\n  plugins: [\n    rename({\n      include: ['**/*.ts'],\n      map: (name) => name.replace('src/', 'dist/'),\n      sourceMap: true,\n    }),\n  ],\n});","lang":"typescript","description":"Rename source paths from src/ to dist/ when using preserveModules, with source maps and TypeScript types.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}