Skip to content

Commit

Permalink
enable maximum treeshaking in all bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
lobsterkatie committed Feb 11, 2022
1 parent ff85f08 commit f26bf03
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/browser/rollup.config.js
Expand Up @@ -81,6 +81,7 @@ const bundleConfig = {
banner: `/*! @sentry/browser <%= pkg.version %> (${commitHash}) | https://github.com/getsentry/sentry-javascript */`,
}),
],
treeshake: 'smallest',
};

export default [
Expand Down
1 change: 1 addition & 0 deletions packages/integrations/rollup.config.js
Expand Up @@ -86,6 +86,7 @@ function loadAllIntegrations() {
strict: false,
},
plugins: build.plugins,
treeshake: 'smallest',
})),
);
});
Expand Down
1 change: 1 addition & 0 deletions packages/tracing/rollup.config.js
Expand Up @@ -68,6 +68,7 @@ const bundleConfig = {
banner: `/*! @sentry/tracing & @sentry/browser <%= pkg.version %> (${commitHash}) | https://github.com/getsentry/sentry-javascript */`,
}),
],
treeshake: 'smallest',
};

export default [
Expand Down
1 change: 1 addition & 0 deletions packages/vue/rollup.config.js
Expand Up @@ -68,6 +68,7 @@ const bundleConfig = {
banner: `/*! @sentry/vue <%= pkg.version %> (${commitHash}) | https://github.com/getsentry/sentry-javascript */`,
}),
],
treeshake: 'smallest',
};

export default [
Expand Down
1 change: 1 addition & 0 deletions packages/wasm/rollup.config.js
Expand Up @@ -79,6 +79,7 @@ function loadAllIntegrations() {
strict: false,
},
plugins: build.plugins,
treeshake: 'smallest',
});
});
return builds;
Expand Down

0 comments on commit f26bf03

Please sign in to comment.