Skip to content

Commit

Permalink
Enable devtool: "source-map" in examples/utils/bundle-size-tests/webp…
Browse files Browse the repository at this point in the history
…ack.config.cjs (microsoft#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
microsoft#21336
  • Loading branch information
CraigMacomber authored Oct 2, 2024
1 parent b5189a1 commit b10d556
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/utils/bundle-size-tests/webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};

0 comments on commit b10d556

Please sign in to comment.