Skip to content

Commit f26bf03

Browse files
committed
enable maximum treeshaking in all bundles
1 parent ff85f08 commit f26bf03

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

packages/browser/rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const bundleConfig = {
8181
banner: `/*! @sentry/browser <%= pkg.version %> (${commitHash}) | https://github.com/getsentry/sentry-javascript */`,
8282
}),
8383
],
84+
treeshake: 'smallest',
8485
};
8586

8687
export default [

packages/integrations/rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ function loadAllIntegrations() {
8686
strict: false,
8787
},
8888
plugins: build.plugins,
89+
treeshake: 'smallest',
8990
})),
9091
);
9192
});

packages/tracing/rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const bundleConfig = {
6868
banner: `/*! @sentry/tracing & @sentry/browser <%= pkg.version %> (${commitHash}) | https://github.com/getsentry/sentry-javascript */`,
6969
}),
7070
],
71+
treeshake: 'smallest',
7172
};
7273

7374
export default [

packages/vue/rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const bundleConfig = {
6868
banner: `/*! @sentry/vue <%= pkg.version %> (${commitHash}) | https://github.com/getsentry/sentry-javascript */`,
6969
}),
7070
],
71+
treeshake: 'smallest',
7172
};
7273

7374
export default [

packages/wasm/rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ function loadAllIntegrations() {
7979
strict: false,
8080
},
8181
plugins: build.plugins,
82+
treeshake: 'smallest',
8283
});
8384
});
8485
return builds;

0 commit comments

Comments
 (0)