mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Makes bundle visualizer output JSON when in CI (#37633)
This commit is contained in:
@@ -214,7 +214,10 @@ export const config: UserConfigFnPromise = async ({ mode, command }) => {
|
||||
svgr(),
|
||||
// Old library types need to be converted
|
||||
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(),
|
||||
],
|
||||
} satisfies UserConfig;
|
||||
|
||||
Reference in New Issue
Block a user