Next.js Bundle Analyzer
Unanswered
PunchedYou posted this in #help-forum
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
};
// ! A `require()` style import is forbidden. eslint@typescript-eslint/no-require-imports
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
export default withBundleAnalyzer(nextConfig);
How do I correctly configure this?