fraudbusters-ui/webpack.extra.js
2022-07-14 15:34:15 +03:00

23 lines
694 B
JavaScript

const webpack = require('webpack');
const SentryWebpackPlugin = require('@sentry/webpack-plugin');
module.exports = {
plugins: [
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/locale$/,
contextRegExp: /moment$/,
}),
...(process.env.SENTRY_AUTH_TOKEN
? [
new SentryWebpackPlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: 'vality-dev',
project: 'fraudbusters',
include: './dist',
ignore: ['node_modules', 'webpack.config.js'],
}),
]
: []),
],
};