Skip to content

Commit

Permalink
feat(sentry): Add sentry moduleMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
adonispuente committed Nov 4, 2024
1 parent aeeb1c9 commit 9356c39
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions fec.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,23 @@ module.exports = {
debug: false,
useProxy: process.env.PROXY === 'true',
proxyVerbose: false,
devtool: 'hidden-source-map',
plugins: [
process.env.SENTRY_AUTH_TOKEN &&
sentryWebpackPlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
}),
...(process.env.SENTRY_AUTH_TOKEN
? [
sentryWebpackPlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
_experiments: {
moduleMetadata: ({ release }) => ({
dsn: process.env.SENTRY_INVENTORY_DSN,
release,
}),
},
}),
]
: []),
],
moduleFederation: {
shared: [
Expand Down

0 comments on commit 9356c39

Please sign in to comment.