Skip to content

Commit

Permalink
fix(bundle-size): increase deterministic id to 4 chars
Browse files Browse the repository at this point in the history
to be forward compatible with prism changes
  • Loading branch information
LeoMcA committed Sep 9, 2024
1 parent 06b7c25 commit d718778
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function config(webpackEnv) {
level: "none",
},
optimization: {
chunkIds: isEnvProduction ? "deterministic" : "named",
chunkIds: isEnvProduction ? false : "named",
moduleIds: isEnvProduction ? "deterministic" : "named",
minimize: isEnvProduction,
minimizer: [
Expand Down Expand Up @@ -519,6 +519,10 @@ function config(webpackEnv) {
analyzerMode: "disabled",
generateStatsFile: true,
}),
isEnvProduction &&
new webpack.ids.DeterministicChunkIdsPlugin({
maxLength: 4, // this is actually min length
}),
].filter(Boolean),
// Turn off performance processing because we utilize
// our own hints via the FileSizeReporter
Expand Down

0 comments on commit d718778

Please sign in to comment.