Skip to content

Commit

Permalink
Never fail webpack build from sentry (#63930)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen committed May 23, 2022
1 parent 9c9ecd1 commit 665f60e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/webpack.config.js
Expand Up @@ -386,6 +386,10 @@ const webpackConfig = {
release: `calypso_${ process.env.COMMIT_SHA }`,
include: filePaths.path,
urlPrefix: `~${ filePaths.publicPath }`,
errorHandler: ( err, invokeErr, compilation ) => {
// Sentry should _never_ fail the webpack build, so only emit warnings here:
compilation.warnings.push( 'Sentry CLI Plugin: ' + err.message );
},
} ),
].filter( Boolean ),
externals: [ 'keytar' ],
Expand Down

0 comments on commit 665f60e

Please sign in to comment.