@next/bundle-analyzer
Unanswered
Havana posted this in #help-forum
HavanaOP
When using next/bundle-analyzer on the latest NextJS version with turbopack, when I run:
I get the following in my console:
Next config:
npm run dev
I get the following in my console:
⚠ Webpack is configured while Turbopack is not, which may cause problems.
⚠ See instructions if you need to configure Turbopack:
https://nextjs.org/docs/app/api-reference/next-config-js/turbo
Next config:
import type { NextConfig } from "next";
import withBundleAnalyzer from "@next/bundle-analyzer";
const isAnalyze = process.env.ANALYZE === "true";
const nextConfig: NextConfig = {
reactStrictMode: true,
};
export default withBundleAnalyzer({ enabled: isAnalyze })(nextConfig);