Skip to content

Commit e00b419

Browse files
authored
chore(build): Update and hoist rollup-plugin-terser (#4539)
In preparation for the new bundling process, this updates `rollup-plugin-terser` to latest and hoists it into the main `package.json`. For more details on the effects this has on the resulting minified bundles (because this is terser we're talking about, there's no effect on non-minified bundles), see the PR description.
1 parent b476532 commit e00b419

File tree

12 files changed

+42
-36
lines changed

12 files changed

+42
-36
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"replace-in-file": "^4.0.0",
7373
"rimraf": "^3.0.2",
7474
"rollup-plugin-license": "^2.6.1",
75+
"rollup-plugin-terser": "^7.0.2",
7576
"rollup-plugin-typescript2": "^0.31.2",
7677
"sinon": "^7.3.2",
7778
"size-limit": "^4.5.5",

packages/browser/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"rollup": "^1.10.1",
4444
"rollup-plugin-commonjs": "^9.3.4",
4545
"rollup-plugin-node-resolve": "^4.2.3",
46-
"rollup-plugin-terser": "^4.0.4",
4746
"sinon": "^7.3.2",
4847
"webpack": "^4.30.0"
4948
},

packages/browser/rollup.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ const terserInstance = terser({
3333
reserved: ['_mergeOptions'],
3434
},
3535
},
36+
output: {
37+
comments: false,
38+
},
3639
});
3740

3841
const paths = {

packages/integrations/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
"chai": "^4.1.2",
2626
"rollup": "^1.10.1",
2727
"rollup-plugin-commonjs": "^9.3.4",
28-
"rollup-plugin-node-resolve": "^4.2.3",
29-
"rollup-plugin-terser": "^4.0.4"
28+
"rollup-plugin-node-resolve": "^4.2.3"
3029
},
3130
"scripts": {
3231
"build": "run-p build:cjs build:esm build:bundle",

packages/integrations/rollup.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ const terserInstance = terser({
1414
reserved: ['captureException', 'captureMessage', 'sentryWrapped'],
1515
properties: false,
1616
},
17+
output: {
18+
comments: false,
19+
},
1720
});
1821

1922
const plugins = [

packages/tracing/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"jsdom": "^16.2.2",
3030
"rollup": "^1.10.1",
3131
"rollup-plugin-commonjs": "^9.3.4",
32-
"rollup-plugin-node-resolve": "^4.2.3",
33-
"rollup-plugin-terser": "^4.0.4"
32+
"rollup-plugin-node-resolve": "^4.2.3"
3433
},
3534
"scripts": {
3635
"build": "run-p build:cjs build:esm build:bundle",

packages/tracing/rollup.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ const terserInstance = terser({
1919
regex: /^_[^_]/,
2020
},
2121
},
22+
output: {
23+
comments: false,
24+
},
2225
});
2326

2427
const paths = {

packages/vue/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
"jsdom": "^16.2.2",
3232
"rollup": "^1.10.1",
3333
"rollup-plugin-commonjs": "^9.3.4",
34-
"rollup-plugin-node-resolve": "^4.2.3",
35-
"rollup-plugin-terser": "^4.0.4"
34+
"rollup-plugin-node-resolve": "^4.2.3"
3635
},
3736
"scripts": {
3837
"build": "run-p build:cjs build:esm build:bundle",

packages/vue/rollup.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ const terserInstance = terser({
1919
regex: /^_[^_]/,
2020
},
2121
},
22+
output: {
23+
comments: false,
24+
},
2225
});
2326

2427
const paths = {

packages/wasm/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"puppeteer": "^5.5.0",
3030
"rollup": "^1.10.1",
3131
"rollup-plugin-commonjs": "^9.3.4",
32-
"rollup-plugin-node-resolve": "^4.2.3",
33-
"rollup-plugin-terser": "^4.0.4"
32+
"rollup-plugin-node-resolve": "^4.2.3"
3433
},
3534
"scripts": {
3635
"build": "run-p build:cjs build:esm build:bundle",

0 commit comments

Comments
 (0)