Skip to content

Commit

Permalink
Merge pull request #2644 from Hyperkid123/sentry-debugging
Browse files Browse the repository at this point in the history
Remove unnecessary sentry code from prod build.
  • Loading branch information
florkbr authored Oct 4, 2023
2 parents 6221b3a + d92595f commit 383387c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/webpack.plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ const plugins = (dev = false, beta = false) => {
Buffer: ['buffer', 'Buffer'],
}),
new ForkTsCheckerWebpackPlugin(),
/**
* Removes error for a missing logger function
* https://github.com/getsentry/sentry-javascript/issues/6596
* https://docs.sentry.io/platforms/javascript/guides/react/configuration/tree-shaking/#tree-shaking-optional-code
*/
new webpack.DefinePlugin({
__SENTRY_DEBUG__: false,
}),
...(dev ? [new ReactRefreshWebpackPlugin()] : []),
];
};
Expand Down

0 comments on commit 383387c

Please sign in to comment.