Unverified Commit 1427bf87 authored by Luke Sandberg's avatar Luke Sandberg Committed by GitHub

[turbopack] update warning message in the bundle analyzer (#87255)

Point next/bundle-analyzer users at the new one when running with turbopack

![image.png](https://app.graphite.com/user-attachments/assets/bffb6bfb-102c-468f-914c-ef1794406591.png)
parent ea1df5f2
...@@ -6,7 +6,9 @@ module.exports = ...@@ -6,7 +6,9 @@ module.exports =
} }
if (process.env.TURBOPACK) { if (process.env.TURBOPACK) {
console.warn( console.warn(
'The Next Bundle Analyzer is not compatible with Turbopack builds yet, no report will be generated.\n\n' + 'The Next Bundle Analyzer is not compatible with Turbopack builds, no report will be generated.\n\n' +
'Consider trying the new Turbopack analyzer via `next experimental-analyze`.\n\n' +
'See https://nextjs.org/docs/app/guides/package-bundling for more information\n\n' +
'To run this analysis pass the `--webpack` flag to `next build`' 'To run this analysis pass the `--webpack` flag to `next build`'
) )
return nextConfig return nextConfig
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment