From e798551065acfbf7e2060d5335a5f3bdc61f4474 Mon Sep 17 00:00:00 2001 From: Luke Sandberg Date: Tue, 7 Oct 2025 09:47:15 -0700 Subject: [PATCH 1/3] no op the webpack bundle analyzer under turbopack --- packages/next-bundle-analyzer/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/next-bundle-analyzer/index.js b/packages/next-bundle-analyzer/index.js index b620492de40e3..c1c7345035d1e 100644 --- a/packages/next-bundle-analyzer/index.js +++ b/packages/next-bundle-analyzer/index.js @@ -4,6 +4,13 @@ module.exports = if (!enabled) { return nextConfig } + if (process.env.TURBOPACK) { + console.warn( + 'The Next Bundle Analyzer is not compatible with turbopack builds, disabling analysis.\n\n' + + 'To run this analysis pass the `--webpack` flag to `next build`' + ) + return nextConfig + } const extension = analyzerMode === 'json' ? '.json' : '.html' From bfb02eee71b82525703a862a1d69528c2dc08435 Mon Sep 17 00:00:00 2001 From: Luke Sandberg Date: Tue, 7 Oct 2025 10:45:14 -0700 Subject: [PATCH 2/3] Update index.js --- packages/next-bundle-analyzer/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next-bundle-analyzer/index.js b/packages/next-bundle-analyzer/index.js index c1c7345035d1e..fce9ee812d433 100644 --- a/packages/next-bundle-analyzer/index.js +++ b/packages/next-bundle-analyzer/index.js @@ -6,7 +6,7 @@ module.exports = } if (process.env.TURBOPACK) { console.warn( - 'The Next Bundle Analyzer is not compatible with turbopack builds, disabling analysis.\n\n' + + 'The Next Bundle Analyzer is not compatible with Turbopack builds. Disabling analysis.\n\n' + 'To run this analysis pass the `--webpack` flag to `next build`' ) return nextConfig From 05afbda307d15fc9265c0502d7f32243fb463a2b Mon Sep 17 00:00:00 2001 From: Luke Sandberg Date: Tue, 7 Oct 2025 11:52:39 -0700 Subject: [PATCH 3/3] Update index.js --- packages/next-bundle-analyzer/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next-bundle-analyzer/index.js b/packages/next-bundle-analyzer/index.js index fce9ee812d433..6034087fc1441 100644 --- a/packages/next-bundle-analyzer/index.js +++ b/packages/next-bundle-analyzer/index.js @@ -6,7 +6,7 @@ module.exports = } if (process.env.TURBOPACK) { console.warn( - 'The Next Bundle Analyzer is not compatible with Turbopack builds. Disabling analysis.\n\n' + + 'The Next Bundle Analyzer is not compatible with Turbopack builds yet, no report will be generated.\n\n' + 'To run this analysis pass the `--webpack` flag to `next build`' ) return nextConfig