Skip to content

Commit 2b2167d

Browse files
committed
move treeshake option to central config
1 parent bc6dcb5 commit 2b2167d

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

packages/browser/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const plugins = [
5656
];
5757

5858
const bundleConfig = {
59+
...baseBundleConfig,
5960
input: 'src/index.ts',
6061
output: {
6162
...baseBundleConfig.output,
@@ -64,7 +65,6 @@ const bundleConfig = {
6465
},
6566
context: 'window',
6667
plugins: [...plugins, licensePlugin],
67-
treeshake: 'smallest',
6868
};
6969

7070
export default [

packages/integrations/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ function loadAllIntegrations() {
7272
].forEach(build => {
7373
builds.push(
7474
...allIntegrations().map(file => ({
75+
...baseBundleConfig,
7576
input: `src/${file}`,
7677
output: {
7778
banner: '(function (__window) {',
@@ -83,7 +84,6 @@ function loadAllIntegrations() {
8384
format: 'cjs',
8485
},
8586
plugins: build.plugins,
86-
treeshake: 'smallest',
8787
})),
8888
);
8989
});

packages/tracing/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const plugins = [
2626
];
2727

2828
const bundleConfig = {
29+
...baseBundleConfig,
2930
input: 'src/index.ts',
3031
output: {
3132
...baseBundleConfig.output,
@@ -34,7 +35,6 @@ const bundleConfig = {
3435
},
3536
context: 'window',
3637
plugins: [...plugins, licensePlugin],
37-
treeshake: 'smallest',
3838
};
3939

4040
export default [

packages/vue/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const plugins = [
2626
];
2727

2828
const bundleConfig = {
29+
...baseBundleConfig,
2930
input: 'src/index.ts',
3031
output: {
3132
...baseBundleConfig.output,
@@ -34,7 +35,6 @@ const bundleConfig = {
3435
},
3536
context: 'window',
3637
plugins: [...plugins, licensePlugin],
37-
treeshake: 'smallest',
3838
};
3939

4040
export default [

packages/wasm/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ function loadAllIntegrations() {
4848
},
4949
].forEach(build => {
5050
builds.push({
51+
...baseBundleConfig,
5152
input: `src/index.ts`,
5253
output: {
5354
banner: '(function (__window) {',
@@ -59,7 +60,6 @@ function loadAllIntegrations() {
5960
format: 'cjs',
6061
},
6162
plugins: build.plugins,
62-
treeshake: 'smallest',
6363
});
6464
});
6565
return builds;

rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,5 @@ export const baseBundleConfig = {
6565
strict: false,
6666
esModule: false,
6767
},
68+
treeshake: 'smallest',
6869
};

0 commit comments

Comments
 (0)