rsnext/packages/next-bundle-analyzer/index.d.ts
quisi.do 19fa1fa579
add logLevel support to @next/bundle-analyzer (#59228)
Co-authored-by: Jiachi Liu <inbox@huozhi.im>
2023-12-06 23:21:23 +01:00

15 lines
393 B
TypeScript

import type { NextConfig } from 'next'
declare function NextBundleAnalyzer(options?: {
enabled?: boolean
openAnalyzer?: boolean
analyzerMode?: 'json' | 'static'
/**
* Log level. Can be 'info', 'warn', 'error' or 'silent'.
* @default 'info'
*/
logLevel?: 'info' | 'warn' | 'error' | 'silent' | undefined
}): (config?: NextConfig) => NextConfig
export = NextBundleAnalyzer