@sentry/wasm 6.17.6 → 6.17.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -9
- package/rollup.config.js +18 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/wasm",
|
|
3
|
-
"version": "6.17.
|
|
3
|
+
"version": "6.17.9",
|
|
4
4
|
"description": "Support for WASM.",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/wasm",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@sentry/browser": "6.17.
|
|
20
|
-
"@sentry/types": "6.17.
|
|
19
|
+
"@sentry/browser": "6.17.9",
|
|
20
|
+
"@sentry/types": "6.17.9",
|
|
21
21
|
"tslib": "^1.9.3"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
@@ -26,12 +26,7 @@
|
|
|
26
26
|
"cross-env": "^7.0.3",
|
|
27
27
|
"express": "^4.17.1",
|
|
28
28
|
"jest-puppeteer": "^4.4.0",
|
|
29
|
-
"puppeteer": "^5.5.0"
|
|
30
|
-
"rollup": "^1.10.1",
|
|
31
|
-
"rollup-plugin-commonjs": "^9.3.4",
|
|
32
|
-
"rollup-plugin-node-resolve": "^4.2.3",
|
|
33
|
-
"rollup-plugin-terser": "^4.0.4",
|
|
34
|
-
"rollup-plugin-typescript2": "^0.21.0"
|
|
29
|
+
"puppeteer": "^5.5.0"
|
|
35
30
|
},
|
|
36
31
|
"scripts": {
|
|
37
32
|
"build": "run-p build:cjs build:esm build:bundle",
|
package/rollup.config.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { terser } from 'rollup-plugin-terser';
|
|
2
2
|
import typescript from 'rollup-plugin-typescript2';
|
|
3
|
-
import resolve from 'rollup
|
|
4
|
-
import commonjs from 'rollup
|
|
3
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
4
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
5
|
+
import replace from '@rollup/plugin-replace';
|
|
5
6
|
|
|
6
7
|
const terserInstance = terser({
|
|
7
8
|
mangle: {
|
|
@@ -12,6 +13,9 @@ const terserInstance = terser({
|
|
|
12
13
|
reserved: ['captureException', 'captureMessage', 'sentryWrapped'],
|
|
13
14
|
properties: false,
|
|
14
15
|
},
|
|
16
|
+
output: {
|
|
17
|
+
comments: false,
|
|
18
|
+
},
|
|
15
19
|
});
|
|
16
20
|
|
|
17
21
|
const plugins = [
|
|
@@ -33,6 +37,16 @@ const plugins = [
|
|
|
33
37
|
},
|
|
34
38
|
include: ['*.ts+(|x)', '**/*.ts+(|x)', '../**/*.ts+(|x)'],
|
|
35
39
|
}),
|
|
40
|
+
replace({
|
|
41
|
+
// don't replace `__placeholder__` where it's followed immediately by a single `=` (to prevent ending up
|
|
42
|
+
// with something of the form `let "replacementValue" = "some assigned value"`, which would cause a
|
|
43
|
+
// syntax error)
|
|
44
|
+
preventAssignment: true,
|
|
45
|
+
// the replacements to make
|
|
46
|
+
values: {
|
|
47
|
+
__SENTRY_BROWSER_BUNDLE__: true,
|
|
48
|
+
},
|
|
49
|
+
}),
|
|
36
50
|
resolve({
|
|
37
51
|
mainFields: ['module'],
|
|
38
52
|
}),
|
|
@@ -74,8 +88,10 @@ function loadAllIntegrations() {
|
|
|
74
88
|
format: 'cjs',
|
|
75
89
|
sourcemap: true,
|
|
76
90
|
strict: false,
|
|
91
|
+
esModule: false,
|
|
77
92
|
},
|
|
78
93
|
plugins: build.plugins,
|
|
94
|
+
treeshake: 'smallest',
|
|
79
95
|
});
|
|
80
96
|
});
|
|
81
97
|
return builds;
|