From 9d7f178cf6723d47855f36ae4567ee292d9b5c8f Mon Sep 17 00:00:00 2001 From: Kim Da Eun Date: Tue, 24 Sep 2024 13:28:18 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20sentry=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=ED=95=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=A0=9C=EC=99=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/webpack.prod.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: {