Skip to content

Commit

Permalink
remove telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed May 13, 2024
1 parent 91dfb26 commit 0efdfb1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/next/src/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1907,7 +1907,6 @@ export default async function getBaseWebpackConfig(
new Map(
[
['swcLoader', useSWCLoader],
['swcMinify', config.swcMinify],
['swcRelay', !!config.compiler?.relay],
['swcStyledComponents', !!config.compiler?.styledComponents],
[
Expand Down
2 changes: 0 additions & 2 deletions packages/next/src/build/webpack/plugins/telemetry-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export type Feature =
| 'next/font/google'
| 'next/font/local'
| 'swcLoader'
| 'swcMinify'
| 'swcRelay'
| 'swcStyledComponents'
| 'swcReactRemoveProperties'
Expand Down Expand Up @@ -83,7 +82,6 @@ const FEATURE_MODULE_REGEXP_MAP: ReadonlyMap<Feature, RegExp> = new Map([
// List of build features used in webpack configuration
const BUILD_FEATURES: Array<Feature> = [
'swcLoader',
'swcMinify',
'swcRelay',
'swcStyledComponents',
'swcReactRemoveProperties',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export class TerserPlugin {
'terser-webpack-plugin-optimize'
)
terserSpan.setAttribute('compilationName', compilation.name)
terserSpan.setAttribute('swcMinify', 'true')

return terserSpan.traceAsyncFn(async () => {
const assetsList = Object.keys(assets)
Expand Down

0 comments on commit 0efdfb1

Please # to comment.