Skip to content

Commit

Permalink
refactor: sentry에서 사용하지 않는 기능 제외
Browse files Browse the repository at this point in the history
  • Loading branch information
llqqssttyy committed Sep 24, 2024
1 parent 479f41e commit 9d7f178
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions frontend/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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: {
Expand Down

0 comments on commit 9d7f178

Please sign in to comment.