diff --git a/packages/nitro/src/rollup/timing.ts b/packages/nitro/src/rollup/timing.ts index b5cc67170f..23bc2847e3 100644 --- a/packages/nitro/src/rollup/timing.ts +++ b/packages/nitro/src/rollup/timing.ts @@ -30,7 +30,7 @@ export function timing (_opts: Options = {}): Plugin { renderChunk (code, chunk: RenderedChunk) { let name = chunk.fileName || '' name = name.replace(extname(name), '') - const logName = name === 'index' ? 'entry' : name + const logName = name === 'index' ? 'Cold Start' : ('Load ' + name) return "'use strict';" + (chunk.isEntry ? HELPER : '') + `${TIMING}.logStart('${logName}');` + code + `;${TIMING}.logEnd('${logName}');` } }