File tree Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 21
21
"@babel/preset-typescript" : " ^7.27.1" ,
22
22
"@babel/runtime" : " ^7.28.3" ,
23
23
"@pmmmwh/react-refresh-webpack-plugin" : " ^0.6.1" ,
24
- "@proton/collect-metrics" : " workspace:^" ,
25
24
"@sentry/webpack-plugin" : " ^1.21.0" ,
26
25
"@swc/core" : " ^1.13.3" ,
27
26
"autoprefixer" : " ^10.4.21" ,
66
65
"prettier" : " ^3.6.2" ,
67
66
"webpack-bundle-analyzer" : " ^4.10.2"
68
67
},
68
+ "peerDependencies" : {
69
+ "@proton/collect-metrics" : " workspace:^"
70
+ },
71
+ "peerDependenciesMeta" : {
72
+ "@proton/collect-metrics" : {
73
+ "optional" : true
74
+ }
75
+ },
69
76
"engines" : {
70
77
"node" : " >= 22.14.0"
71
78
}
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ const WriteWebpackPlugin = require('./write-webpack-plugin').default;
16
16
const HtmlEditWebpackPlugin = require ( './html-edit-webpack-plugin' ) . default ;
17
17
const BundleAnalyzerPlugin = require ( 'webpack-bundle-analyzer' ) . BundleAnalyzerPlugin ;
18
18
const SriWebpackPlugin = require ( './sri-webpack-plugin' ) . default ;
19
- const { WebpackCollectMetricsPlugin } = require ( '@proton/collect-metrics' ) ;
20
19
21
20
const defaultFaviconConfig = require ( './favicon.config' ) ;
22
21
const faviconConfig = require ( path . resolve ( './favicon.config.js' ) ) ;
@@ -39,6 +38,12 @@ module.exports = ({
39
38
analyze,
40
39
defineWebpackConfig,
41
40
} ) => {
41
+ let WebpackCollectMetricsPlugin ;
42
+
43
+ if ( CI ) {
44
+ WebpackCollectMetricsPlugin = require ( '@proton/collect-metrics' ) . WebpackCollectMetricsPlugin ;
45
+ }
46
+
42
47
return [
43
48
...( isProduction
44
49
? [ ]
Original file line number Diff line number Diff line change @@ -8260,7 +8260,7 @@ __metadata:
8260
8260
languageName: unknown
8261
8261
linkType: soft
8262
8262
8263
- "@proton/collect-metrics@workspace:^, @proton/collect-metrics@workspace: utilities/collect-metrics":
8263
+ "@proton/collect-metrics@workspace:utilities/collect-metrics":
8264
8264
version: 0.0.0-use.local
8265
8265
resolution: "@proton/collect-metrics@workspace:utilities/collect-metrics"
8266
8266
dependencies:
@@ -8863,7 +8863,6 @@ __metadata:
8863
8863
"@babel/preset-typescript": "npm:^7.27.1"
8864
8864
"@babel/runtime": "npm:^7.28.3"
8865
8865
"@pmmmwh/react-refresh-webpack-plugin": "npm:^0.6.1"
8866
- "@proton/collect-metrics": "workspace:^"
8867
8866
"@sentry/webpack-plugin": "npm:^1.21.0"
8868
8867
"@swc/core": "npm:^1.13.3"
8869
8868
autoprefixer: "npm:^10.4.21"
@@ -8905,6 +8904,11 @@ __metadata:
8905
8904
webpack-dev-server: "npm:^5.2.2"
8906
8905
webpack-retry-chunk-load-plugin: "npm:^3.1.1"
8907
8906
webpack-subresource-integrity: "npm:^5.1.0"
8907
+ peerDependencies:
8908
+ "@proton/collect-metrics": "workspace:^"
8909
+ peerDependenciesMeta:
8910
+ "@proton/collect-metrics":
8911
+ optional: true
8908
8912
bin:
8909
8913
proton-pack: ./bin/protonPack.js
8910
8914
languageName: unknown
You can’t perform that action at this time.
0 commit comments