Makes bundle visualizer output JSON when in CI (#37633)
This commit is contained in:
parent
76ab866d93
commit
7a7c42b50c
@ -214,7 +214,10 @@ export const config: UserConfigFnPromise = async ({ mode, command }) => {
|
|||||||
svgr(),
|
svgr(),
|
||||||
// Old library types need to be converted
|
// Old library types need to be converted
|
||||||
optimizeLodashImports() as PluginOption,
|
optimizeLodashImports() as PluginOption,
|
||||||
!!process.env.ANALYZE_BUNDLE_SIZE && (visualizer() as PluginOption),
|
!!process.env.ANALYZE_BUNDLE_SIZE &&
|
||||||
|
(visualizer({
|
||||||
|
template: process.env.CI ? 'raw-data' : 'treemap',
|
||||||
|
}) as PluginOption),
|
||||||
MastodonNameLookup(),
|
MastodonNameLookup(),
|
||||||
],
|
],
|
||||||
} satisfies UserConfig;
|
} satisfies UserConfig;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user