File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,15 @@ const normalizeName = require('webpack/lib/optimize/SplitChunksPlugin')
1010const ManifestPlugin = require ( 'webpack-manifest-plugin' ) ;
1111const CopyWebpackPlugin = require ( 'copy-webpack-plugin' ) ;
1212const VERSION = require ( '@codesandbox/common/lib/version' ) . default ;
13+ const childProcess = require ( 'child_process' ) ;
1314const commonConfig = require ( './webpack.common' ) ;
1415
1516const publicPath = '/' ;
17+ const isMaster =
18+ childProcess
19+ . execSync ( 'git branch' )
20+ . toString ( )
21+ . trim ( ) === '* master' ;
1622
1723const normalize = normalizeName ( { name : true , automaticNameDelimiter : '~' } ) ;
1824
@@ -300,10 +306,11 @@ module.exports = merge(commonConfig, {
300306 to : 'public/sse-hooks' ,
301307 } ,
302308 ] ) ,
303- new SentryWebpackPlugin ( {
304- include : '.' ,
305- ignore : [ 'node_modules' , 'webpack.config.js' ] ,
306- release : VERSION ,
307- } ) ,
309+ isMaster &&
310+ new SentryWebpackPlugin ( {
311+ include : '.' ,
312+ ignore : [ 'node_modules' , 'webpack.config.js' ] ,
313+ release : VERSION ,
314+ } ) ,
308315 ] . filter ( Boolean ) ,
309316} ) ;
You can’t perform that action at this time.
0 commit comments