Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for Lambda Dependency Tree Shaking and Minification

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [PACKAGE_JSON_OR_REQUIREMENTS]
  • [BUILD_TOOL]
  • [CURRENT_BUNDLE_SIZE]
lambda-dependency-tree-shaking.txt
Analyze the [PACKAGE_JSON_OR_REQUIREMENTS] to identify bloated libraries that increase package size and cold start times. Using [BUILD_TOOL], provide a configuration strategy for tree shaking and minification. Suggest specific alternatives for heavy SDKs (e.g., using AWS SDK v3 modular imports) to reduce the [CURRENT_BUNDLE_SIZE] by at least 50%. Explain how smaller bundles impact local disk I/O and execution environment lifecycle.

Example Output

"The AI would provide a specific Webpack or Esbuild configuration along with a list of redundant dependencies to remove from the deployment package."