Skip to content

Commit cf6fa45

Browse files
timneutkensstyfle
andauthored
Update packages/next/build/webpack/plugins/profiling-plugin.ts
Co-authored-by: Steven <steven@ceriously.com>
1 parent 99680f0 commit cf6fa45

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

packages/next/build/webpack/plugins/profiling-plugin.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -104,21 +104,7 @@ export class ProfilingPlugin {
104104
return ''
105105
}
106106

107-
if (module.userRequest.endsWith('.css')) {
108-
return 'css'
109-
}
110-
111-
if (module.userRequest.endsWith('.js')) {
112-
return 'js'
113-
}
114-
115-
if (module.userRequest.endsWith('.ts')) {
116-
return 'ts'
117-
}
118-
119-
if (module.userRequest.endsWith('.tsx')) {
120-
return 'tsx'
121-
}
107+
return module.userRequest.split('.').pop()
122108
})()
123109

124110
const span = trace(

0 commit comments

Comments
 (0)