Unverified Commit 61409dd6 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update stats-config for release stats (#29654)

parent 5d7b68f1
...@@ -45,6 +45,10 @@ if (!allowedActions.has(actionInfo.actionName) && !actionInfo.isRelease) { ...@@ -45,6 +45,10 @@ if (!allowedActions.has(actionInfo.actionName) && !actionInfo.isRelease) {
await checkoutRef(actionInfo.prRef, diffRepoDir) await checkoutRef(actionInfo.prRef, diffRepoDir)
} }
if (actionInfo.isRelease) {
process.env.STATS_IS_RELEASE = 'true'
}
// load stats config from allowed locations // load stats config from allowed locations
const { statsConfig, relativeStatsAppDir } = loadStatsConfig() const { statsConfig, relativeStatsAppDir } = loadStatsConfig()
......
...@@ -135,7 +135,10 @@ module.exports = { ...@@ -135,7 +135,10 @@ module.exports = {
generateBuildId: () => 'BUILD_ID', generateBuildId: () => 'BUILD_ID',
experimental: { experimental: {
swcLoader: true, swcLoader: true,
swcMinify: true, swcMinify: ${
// TODO: remove after stable release > 11.1.2
process.env.STATS_IS_RELEASE ? 'false' : 'true'
},
}, },
webpack(config) { webpack(config) {
config.optimization.minimize = false config.optimization.minimize = false
...@@ -159,7 +162,10 @@ module.exports = { ...@@ -159,7 +162,10 @@ module.exports = {
module.exports = { module.exports = {
experimental: { experimental: {
swcLoader: true, swcLoader: true,
swcMinify: true swcMinify: ${
// TODO: remove after stable release > 11.1.2
process.env.STATS_IS_RELEASE ? 'false' : 'true'
},
}, },
generateBuildId: () => 'BUILD_ID' generateBuildId: () => 'BUILD_ID'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment