Skip to content

Commit

Permalink
feat: setup Sentry webpack plugin for source map
Browse files Browse the repository at this point in the history
  • Loading branch information
devcatalin committed Jan 27, 2023
1 parent 12e18ed commit 802e066
Show file tree
Hide file tree
Showing 3 changed files with 415 additions and 1 deletion.
12 changes: 11 additions & 1 deletion craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,20 @@ const CracoLessPlugin = require('craco-less');
const {getThemeVariables} = require('antd/dist/theme');
const lodash = require('lodash');
const path = require('path');
const SentryWebpackPlugin = require('@sentry/webpack-plugin');

module.exports = {
webpack: {
plugins: [new MonacoWebpackPlugin({languages: ['yaml'], globalAPI: true})],
devtool: 'source-map',
plugins: [
new MonacoWebpackPlugin({languages: ['yaml'], globalAPI: true}),
new SentryWebpackPlugin({
org: 'kubeshop',
project: 'monokle-desktop',
include: './build',
authToken: process.env.SENTRY_AUTH_TOKEN,
}),
],
configure: webpackConfig => {
webpackConfig.node = {__dirname: false};
webpackConfig.target = 'electron-renderer';
Expand Down
Loading

0 comments on commit 802e066

Please sign in to comment.