-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow configuring analyzerMode in bundle-analyzer (#47468)
It's valid to want to output JSON instead of HTML for the bundle analyzer so we can expose this specific config the same as `openAnalyzer`. cc @mknichel
- Loading branch information
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import type { NextConfig } from 'next' | ||
|
||
declare const NextBundleAnalyzer = | ||
(options?: { enabled?: boolean; openAnalyzer?: boolean }) => | ||
(config?: NextConfig) => | ||
NextConfig | ||
declare function NextBundleAnalyzer(options?: { | ||
enabled?: boolean | ||
openAnalyzer?: boolean | ||
analyzerMode?: 'json' | 'static' | ||
}): (config?: NextConfig) => NextConfig | ||
|
||
export = NextBundleAnalyzer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters