https://github.com/0-kodiya-0/plugins
A collection of build tools and VS Code extensions for conditional code removal and development workflow optimization.
https://github.com/0-kodiya-0/plugins
esbuild-plugin vite-plugin vscode-extension
Last synced: about 1 month ago
JSON representation
A collection of build tools and VS Code extensions for conditional code removal and development workflow optimization.
- Host: GitHub
- URL: https://github.com/0-kodiya-0/plugins
- Owner: 0-kodiya-0
- License: mit
- Created: 2025-08-29T11:08:25.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-14T17:27:40.000Z (9 months ago)
- Last Synced: 2025-09-14T18:16:52.137Z (9 months ago)
- Topics: esbuild-plugin, vite-plugin, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 173 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Plugins
A collection of build tools and VS Code extensions for conditional code removal and development workflow optimization.
### Build Tools
#### [esbuild-plugin-remove-code](./esbuild/esbuild-plugin-remove-code/)
An esbuild plugin that removes code blocks marked with special comments during the build process. Perfect for stripping debug code, development-only features, or test utilities from production builds.
**Key Features:**
- Environment-aware code removal (production, development, test)
- Multiple comment patterns (multi-line, single-line, inline)
- TypeScript support with zero runtime dependencies
- Fast processing with minimal performance impact
#### [vite-plugin-remove-code](./vite/vite-plugin-remove-code/)
A Vite plugin that removes code blocks marked with special comments during the build process. Ideal for removing debug code and development utilities from production builds in Vite projects.
**Key Features:**
- Selective code removal based on comment markers
- Environment-specific behavior
- Full TypeScript support
- Efficient regex-based processing
### VS Code Extensions
#### [code-removal-comments](./vscode/code-removal-comments/)
A comprehensive VS Code extension that makes it easy to add removal comments for conditional code compilation. Works seamlessly with the build plugins above.
**Key Features:**
- Multiple comment styles (multi-line, single-line, inline)
- Environment-specific wrapping (production, development, test, debug)
- Keyboard shortcuts and context menu integration
- Fully configurable comment patterns
- Cleanup utilities for removing existing markers
## 🚀 Quick Start
1. **Install a build plugin** (esbuild or Vite version)
2. **Install the VS Code extension** for easy comment management
3. **Mark code for removal** using the extension's commands
4. **Build your project** - debug code is automatically removed in production
## 🔗 Integration
These tools are designed to work together:
- Use the **VS Code extension** to quickly mark code for removal
- Use the **build plugins** to actually remove the marked code during compilation
- Support for custom comment patterns across all tools for consistency
## 📄 License
MIT