Skip to content

Commit

Permalink
feat(sentry): Add sentry moduleMetadata (#1268)
Browse files Browse the repository at this point in the history
  • Loading branch information
adonispuente authored Dec 6, 2024
1 parent 5dfe3a6 commit 90478ce
Show file tree
Hide file tree
Showing 2 changed files with 17 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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"server:ctr": "node src/server/generateServerKey.js",
"start": "fec dev",
"start:proxy": "PROXY=true fec dev",
"static": "fec static",
"test": "npm run test:jest",
"test:local": "TZ=UTC jest --verbose --collectCoverage=false --passWithNoTests --env=jsdom",
"test:jest": "TZ=UTC jest --verbose --passWithNoTests --env=jsdom",
Expand Down

0 comments on commit 90478ce

Please sign in to comment.