Skip to content

Commit

Permalink
fix: fix sentry cli webpack plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sneljo1 committed Feb 19, 2020
1 parent 90115ac commit c941264
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .electron-react/webpack.renderer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
const base = require('./webpack.base.config');
const merge = require('webpack-merge');

const { dependencies, optionalDependencies } = require('../package.json');
const SentryCliPlugin = require('@sentry/webpack-plugin');
const { dependencies, optionalDependencies, version: appVersion } = require('../package.json');

const externals = [...Object.keys(dependencies || {}), ...Object.keys(optionalDependencies || {})];

Expand Down Expand Up @@ -242,8 +242,8 @@ if (isProd) {

if (process.env.SENTRY_AUTH_TOKEN) {
rendererConfig.plugins.push(
new SentryPlugin({
release: packageJson.version,
new SentryCliPlugin({
release: appVersion,
include: [path.join(__dirname, '../dist/electron')]
})
);
Expand Down

0 comments on commit c941264

Please sign in to comment.