Sentry JavaScript SDK Tree Shaking
JavaScript SDK “Package Size is Massive” - So we reduced it by 29% | Product Blog • Sentry
sentry の JavaScript SDK で Tree Shaking できるようになった
This represents a 29% decrease in bundle size.
約30%くらい削れるようになったらしい
Tree Shaking for JavaScript | Sentry Documentation
code:js
const webpack = require("webpack");
module.exports = {
// ... other options
plugins: [
new webpack.DefinePlugin({
__SENTRY_DEBUG__: false,
__SENTRY_TRACING__: false,
}),
// ... other plugins
],
};