mirror of
https://github.com/strapi/strapi.git
synced 2026-01-06 12:13:52 +00:00
fix: cast bundle analyzer plugin type
This commit is contained in:
parent
28d0d5434a
commit
6daaab5d7a
@ -196,8 +196,8 @@ const resolveProductionConfig = async (ctx: BuildContext): Promise<Configuration
|
||||
chunkFilename: '[name].[chunkhash].chunkhash.css',
|
||||
ignoreOrder: true,
|
||||
}),
|
||||
ctx.options.stats && new BundleAnalyzerPlugin(),
|
||||
].filter(Boolean) as WebpackPluginInstance[], // TODO: find out if this is an actual issue or just a ts bug
|
||||
ctx.options.stats && (new BundleAnalyzerPlugin() as unknown as WebpackPluginInstance), // TODO: find out if this is an actual issue or just a ts bug
|
||||
].filter(Boolean),
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user