Skip to content

Commit cb85ac1

Browse files
committedMar 18, 2024··
fix: prefix with format when not using a hash
1 parent 6061603 commit cb85ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/node/tasks/rollup/resolveRollupConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export function resolveRollupConfig(
194194
outputOptions: {
195195
chunkFileNames: () => {
196196
const parts = outputExt.split('.')
197-
const prefix = config?.rollup?.hashChunkFileNames ? '[name]-[hash]' : '[name]'
197+
const prefix = config?.rollup?.hashChunkFileNames ? '[name]-[hash]' : '[name]-[format]'
198198

199199
if (parts.length === 3) {
200200
return `_chunks/${prefix}.${parts[2]}`

0 commit comments

Comments
 (0)
Please sign in to comment.