{"library":"next-bundle-analyzer","title":"next-bundle-analyzer","description":"A customized Webpack Bundle Analyzer wrapper for Next.js that generates per-page chunk reports, differentiating between shared and page-specific bundles. Currently at version 0.6.8, it supports Next.js 10-14 as a peer dependency. Unlike @next/bundle-analyzer, this library provides detailed group analysis (shared across all pages vs shared by multiple pages) and per-page issuer information. It generates HTML or JSON reports with configurable output directory and filename. Active development with periodic releases fixing tooltips, compatibility, and dependency updates.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install next-bundle-analyzer"],"cli":null},"imports":["const withNextBundleAnalyzer = require('next-bundle-analyzer');","const withNextBundleAnalyzer = require('next-bundle-analyzer')({ enabled: true });","import type { PluginOptions } from 'next-bundle-analyzer';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// next.config.js\nconst shouldAnalyzeBundles = process.env.ANALYZE === 'true';\n\nlet nextConfig = {\n  // your Next.js config\n};\n\nif (shouldAnalyzeBundles) {\n  const withNextBundleAnalyzer = require('next-bundle-analyzer')({\n    enabled: true,\n    clientOnly: false,\n    format: 'html',\n    reportDir: 'analyze',\n    reportFilename: 'bundles'\n  });\n  nextConfig = withNextBundleAnalyzer(nextConfig);\n}\n\nmodule.exports = nextConfig;","lang":"javascript","description":"Conditionally enables bundle analysis via ANALYZE environment variable, generating HTML reports for both client and server bundles.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}