-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsentry-webpack.config.ts
More file actions
27 lines (24 loc) · 947 Bytes
/
sentry-webpack.config.ts
File metadata and controls
27 lines (24 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { CustomWebpackBrowserSchema, TargetOptions } from '@angular-builders/custom-webpack';
import { sentryWebpackPlugin } from '@sentry/webpack-plugin';
import * as webpack from 'webpack';
export default (
config: webpack.Configuration,
_: CustomWebpackBrowserSchema,
__: TargetOptions
) => {
config.devtool = 'source-map';
config.plugins.push(
sentryWebpackPlugin({
org: 'rubic', //process.env.SENTRY_ORG,
project: 'internal', //process.env.SENTRY_PROJECT,
authToken:
'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', //process.env.SENTRY_AUTH_TOKEN,
bundleSizeOptimizations: {
excludeReplayIframe: true,
excludeReplayShadowDom: true,
excludeReplayWorker: true
}
})
);
return config;
};