2018-12-04 17:38:16 +00:00
|
|
|
const webpack = require('webpack');
|
2021-08-25 14:52:01 +00:00
|
|
|
const SentryWebpackPlugin = require('@sentry/webpack-plugin');
|
2018-12-04 17:38:16 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2021-08-25 14:52:01 +00:00
|
|
|
plugins: [
|
2022-01-14 11:06:44 +00:00
|
|
|
new webpack.IgnorePlugin({
|
|
|
|
resourceRegExp: /^\.\/locale$/,
|
|
|
|
contextRegExp: /moment$/,
|
|
|
|
}),
|
2021-08-26 09:48:18 +00:00
|
|
|
...(process.env.SENTRY_AUTH_TOKEN
|
|
|
|
? [
|
|
|
|
new SentryWebpackPlugin({
|
|
|
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
|
|
|
org: 'rbkmoney-fd',
|
|
|
|
project: 'dashboard',
|
|
|
|
include: './dist',
|
|
|
|
ignore: ['node_modules', 'webpack.config.js'],
|
|
|
|
}),
|
|
|
|
]
|
|
|
|
: []),
|
2021-08-25 14:52:01 +00:00
|
|
|
],
|
2018-12-04 17:38:16 +00:00
|
|
|
};
|