Sentry JavaScript SDK Tree Shaking
sentry の JavaScript SDK で Tree Shaking できるようになった This represents a 29% decrease in bundle size.
約30%くらい削れるようになったらしい
code:js
const webpack = require("webpack");
module.exports = {
// ... other options
plugins: [
new webpack.DefinePlugin({
__SENTRY_DEBUG__: false,
__SENTRY_TRACING__: false,
}),
// ... other plugins
],
};