Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/next-bundle-analyzer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
Loading