From b10d55615f987ba1c987fc0899a4d7dfafa6b9cd Mon Sep 17 00:00:00 2001 From: "Craig Macomber (Microsoft)" <42876482+CraigMacomber@users.noreply.github.com> Date: Wed, 2 Oct 2024 11:33:16 -0700 Subject: [PATCH] Enable devtool: "source-map" in examples/utils/bundle-size-tests/webpack.config.cjs (#22711) ## Description This enables another approach, source-map-explorer, for investigating bundle size which gives more detailed and precise results. This change was extracted from https://github.com/microsoft/FluidFramework/pull/21336 --- examples/utils/bundle-size-tests/webpack.config.cjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/utils/bundle-size-tests/webpack.config.cjs b/examples/utils/bundle-size-tests/webpack.config.cjs index 7adc673d3a04..f317c0812363 100644 --- a/examples/utils/bundle-size-tests/webpack.config.cjs +++ b/examples/utils/bundle-size-tests/webpack.config.cjs @@ -130,4 +130,7 @@ module.exports = { file: path.resolve(process.cwd(), "bundleAnalysis/bundleStats.msp.gz"), }), ], + // Enabling source maps allows using source-map-explorer to investigate bundle contents, + // which provides more fine grained details than BundleAnalyzerPlugin, so its nice for manual investigations. + devtool: "source-map", };