Skip to content

Commit aad26d8

Browse files
committed
Only display size on local builds
1 parent a164d6b commit aad26d8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Components/Shared.JS/rollup.config.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ export default function createBaseConfig({ inputOutputMap, dir, updateConfig })
6464
keep_classnames: false,
6565
keep_fnames: false,
6666
toplevel: true
67-
})
68-
,
69-
environment !== 'development' && filesize({ showMinifiedSize: true, showGzippedSize: true, showBrotliSize: true })
67+
}),
68+
// Check the ContinuousIntegrationBuild environment variable to determine if we should show the file size.
69+
env.ContinuousIntegrationBuild !== 'true' && environment !== 'development' && filesize({ showMinifiedSize: true, showGzippedSize: true, showBrotliSize: true })
7070
],
7171
treeshake: 'smallest',
7272
logLevel: 'silent'
@@ -78,6 +78,9 @@ export default function createBaseConfig({ inputOutputMap, dir, updateConfig })
7878
output: {
7979
...baseConfig.output,
8080
},
81+
plugins: [
82+
...baseConfig.plugins
83+
],
8184
input: { [output]: input }
8285
};
8386

0 commit comments

Comments
 (0)