@next/bundle-analyzer 15.6.0-canary.8 → 16.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4,6 +4,13 @@ module.exports =
|
|
|
4
4
|
if (!enabled) {
|
|
5
5
|
return nextConfig
|
|
6
6
|
}
|
|
7
|
+
if (process.env.TURBOPACK) {
|
|
8
|
+
console.warn(
|
|
9
|
+
'The Next Bundle Analyzer is not compatible with Turbopack builds yet, no report will be generated.\n\n' +
|
|
10
|
+
'To run this analysis pass the `--webpack` flag to `next build`'
|
|
11
|
+
)
|
|
12
|
+
return nextConfig
|
|
13
|
+
}
|
|
7
14
|
|
|
8
15
|
const extension = analyzerMode === 'json' ? '.json' : '.html'
|
|
9
16
|
|