@@ -2,7 +2,7 @@ const webpack = require('webpack');
22const nsWebpack = require ( '@nativescript/webpack' ) ;
33const { dirname, join, relative, resolve, sep } = require ( 'path' ) ;
44const { readdirSync, readFileSync } = require ( 'fs' ) ;
5- const SentryCliPlugin = require ( '@sentry/webpack-plugin' ) ;
5+ const { sentryWebpackPlugin } = require ( '@sentry/webpack-plugin' ) ;
66module . 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