@next/bundle-analyzer 15.4.0-canary.98 → 15.4.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.
Files changed (2) hide show
  1. package/index.js +4 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5,6 +5,8 @@ module.exports =
5
5
  return nextConfig
6
6
  }
7
7
 
8
+ const extension = analyzerMode === 'json' ? '.json' : '.html'
9
+
8
10
  return Object.assign({}, nextConfig, {
9
11
  webpack(config, options) {
10
12
  const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
@@ -14,10 +16,10 @@ module.exports =
14
16
  logLevel,
15
17
  openAnalyzer,
16
18
  reportFilename: !options.nextRuntime
17
- ? `./analyze/client.html`
19
+ ? `./analyze/client${extension}`
18
20
  : `../${options.nextRuntime === 'nodejs' ? '../' : ''}analyze/${
19
21
  options.nextRuntime
20
- }.html`,
22
+ }${extension}`,
21
23
  })
22
24
  )
23
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next/bundle-analyzer",
3
- "version": "15.4.0-canary.98",
3
+ "version": "15.4.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "license": "MIT",