|
@@ -187,7 +187,7 @@ const babelOptions = {...babelConfig, cacheDirectory: true};
|
|
|
/**
|
|
|
* Main Webpack config for Sentry React SPA.
|
|
|
*/
|
|
|
-const appConfig = {
|
|
|
+let appConfig = {
|
|
|
mode: WEBPACK_MODE,
|
|
|
entry: {
|
|
|
/**
|
|
@@ -460,4 +460,10 @@ if (IS_PRODUCTION) {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+if (process.env.MEASURE) {
|
|
|
+ const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');
|
|
|
+ const smp = new SpeedMeasurePlugin();
|
|
|
+ appConfig = smp.wrap(appConfig);
|
|
|
+}
|
|
|
+
|
|
|
module.exports = appConfig;
|