MCPcopy Create free account
hub / github.com/Evansy/MallChatWeb / configVisualizerPlugin

Function configVisualizerPlugin

config/plugin/visualizer.ts:7–18  ·  view source on GitHub ↗
(isOpen = false)

Source from the content-addressed store, hash-verified

5 * @param isOpen 是否开启打包分析
6 */
7export default function configVisualizerPlugin(isOpen = false) {
8 // 自己手动开启或者定义打包分析环境变量开启打包分析
9 if (isOpen) {
10 return visualizer({
11 filename: './node_modules/.cache/visualizer/stats.html',
12 open: true,
13 gzipSize: true,
14 brotliSize: true,
15 })
16 }
17 return []
18}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected