File tree Expand file tree Collapse file tree 4 files changed +207
-25
lines changed Expand file tree Collapse file tree 4 files changed +207
-25
lines changed Original file line number Diff line number Diff line change @@ -37,4 +37,6 @@ node_modules
3737jspm_packages
3838
3939# Serverless directories
40- .serverless
40+ .serverless
41+ # Sentry Auth Token
42+ .env.sentry-build-plugin
Original file line number Diff line number Diff line change 5757 "@nivo/sunburst" : " ^0.82.1" ,
5858 "@nivo/treemap" : " ^0.82.1" ,
5959 "@sentry/react" : " ^7.57.0" ,
60+ "@sentry/webpack-plugin" : " ^2.5.0" ,
6061 "babel-runtime" : " ^6.26.0" ,
6162 "chroma-js" : " ^2.4.2" ,
6263 "classnames" : " ^2.3.1" ,
Original file line number Diff line number Diff line change 11const ReactRefreshWebpackPlugin = require ( '@pmmmwh/react-refresh-webpack-plugin' ) ;
2+ const { sentryWebpackPlugin } = require ( '@sentry/webpack-plugin' ) ;
23const rules = [
34 {
45 test : / \. ( j s | j s x | t s | t s x ) $ / ,
@@ -51,7 +52,15 @@ module.exports = (env) => {
5152 port : 3000 ,
5253 hot : true ,
5354 } ,
54- plugins : production ? [ ] : [ new ReactRefreshWebpackPlugin ( ) ] ,
55+ plugins : production
56+ ? [
57+ sentryWebpackPlugin ( {
58+ authToken : process . env . SENTRY_AUTH_TOKEN ,
59+ org : 'neo4j-inc' ,
60+ project : 'neodash' ,
61+ } ) ,
62+ ]
63+ : [ new ReactRefreshWebpackPlugin ( ) ] ,
5564 ignoreWarnings : [ / F a i l e d t o p a r s e s o u r c e m a p / ] ,
5665 } ;
5766} ;
You can’t perform that action at this time.
0 commit comments