Skip to content

Commit 17f3be7

Browse files
authored
chore: fix worker sourcemap output style (#7805)
1 parent 7f96b26 commit 17f3be7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/vite/src/node/plugins/reporter.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,15 @@ export function buildReporterPlugin(config: ResolvedConfig): Plugin {
184184
}
185185
} else if (chunk.source) {
186186
const isCSS = chunk.fileName.endsWith('.css')
187+
const isMap = chunk.fileName.endsWith('.js.map')
187188
printFileInfo(
188189
chunk.fileName,
189190
chunk.source,
190-
isCSS ? WriteType.CSS : WriteType.ASSET,
191+
isCSS
192+
? WriteType.CSS
193+
: isMap
194+
? WriteType.SOURCE_MAP
195+
: WriteType.ASSET,
191196
longest,
192197
isCSS ? await getCompressedSize(chunk.source) : undefined
193198
)

0 commit comments

Comments
 (0)