diff --git a/frontend/webpack.prod.js b/frontend/webpack.prod.js index f5facfbcc..fe6a4f859 100644 --- a/frontend/webpack.prod.js +++ b/frontend/webpack.prod.js @@ -2,6 +2,7 @@ const { merge } = require('webpack-merge'); const common = require('./webpack.config.js'); const webpack = require('webpack'); const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); +const { sentryWebpackPlugin } = require('@sentry/webpack-plugin'); module.exports = merge(common, { mode: 'production', @@ -20,6 +21,17 @@ module.exports = merge(common, { openAnalyzer: false, excludeAssets: [/node_modules/], }), + sentryWebpackPlugin({ + bundleSizeOptimizations: { + excludeDebugStatements: true, + /** + * 서비스에서 iframe과 shadow dom을 사용하지 않으므로 관련 코드를 제외합니다. + * 2024.09.24 렛서 + */ + excludeReplayIframe: true, + excludeReplayShadowDom: true, + }, + }), ], optimization: { splitChunks: {