Unused Import Eliminator
Optimize your codebase with this AI prompt, identifying and eliminating unused imports to enhance performance and reduce costs.
What this prompt does
- Analyzes codebases to identify and eliminate unused imports, reducing bundle size and deployment costs.
- Distinguishes between runtime dependencies and type-only imports, ensuring type safety.
- Provides precise recommendations for refactoring to maximize tree-shaking potential.
How to use this prompt
- Run the full prompt and answer the questions as detailed as possible.
- Example: "My codebase files include 'app.js', 'utils.js', and 'components.js'. My framework is React, and I use Webpack as my bundler. TypeScript is used, version 4.5. My target environment is both browser and Node.js."
Premium prompt — included in the Complete AI Bundle. Part of the Coding prompts collection in the God of Prompt library.