mirror of
https://github.com/mastodon/mastodon.git
synced 2026-03-21 18:05:23 -05:00
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(),
|
||||
// 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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user