Skip to content

Commit 987a185

Browse files
authored
Merge pull request #16 from williamjuan027/feat/sentry-webpack-update
feat: update sentry/webpack-plugin to v2.2.2
2 parents 99e2a41 + 10ae22a commit 987a185

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

demo-vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@nativescript/ios": "8.4.0",
1616
"@nativescript/webpack": "~5.0.12",
1717
"@sentry/cli": "2.10.0",
18-
"@sentry/webpack-plugin": "1.20.0",
18+
"@sentry/webpack-plugin": "2.2.2",
1919
"babel-loader": "~9.1.0",
2020
"cross-var": "^1.1.0",
2121
"nativescript-vue-template-compiler": "~2.9.3",

demo-vue/webpack.config.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const webpack = require('webpack');
22
const nsWebpack = require('@nativescript/webpack');
33
const { dirname, join, relative, resolve, sep } = require('path');
44
const { readdirSync, readFileSync } = require('fs');
5-
const SentryCliPlugin = require('@sentry/webpack-plugin');
5+
const { sentryWebpackPlugin } = require('@sentry/webpack-plugin');
66
module.exports = (env, params = {}) => {
77
nsWebpack.init(env);
88
nsWebpack.chainWebpack(config=>{
@@ -51,14 +51,18 @@ module.exports = (env, params = {}) => {
5151
})
5252
);
5353
// config.plugins.push(
54-
// new SentryCliPlugin({
54+
// sentryWebpackPlugin({
5555
// release: appVersion,
5656
// urlPrefix: SENTRY_PREFIX,
5757
// rewrite: true,
58-
// release: `${nconfig.id}@${appVersion}+${buildNumber}`,
59-
// dist: `${buildNumber}.${platform}`,
60-
// ignoreFile: '.sentrycliignore',
61-
// include: [dist, join(dist, SOURCEMAP_REL_DIR)]
58+
// release: {
59+
// name: `${nconfig.id}@${appVersion}+${buildNumber}`,
60+
// dist: `${buildNumber}.${platform}`,
61+
// uploadLegacySourcemaps: {
62+
// ignoreFile: '.sentrycliignore',
63+
// paths: [dist, join(dist, SOURCEMAP_REL_DIR)]
64+
// },
65+
// },
6266
// })
6367
// );
6468
return config;

0 commit comments

Comments
 (0)