Skip to content

Commit e414a6b

Browse files
fix: update rollup chunk file naming to use endsWith for GraphQL file checks
1 parent ebf2828 commit e414a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export default defineNitroModule({
199199
rollupConfig.output.chunkFileNames = (chunkInfo) => {
200200
// GraphQL dosyalarını kontrol et
201201
if (chunkInfo.moduleIds && chunkInfo.moduleIds.some(id =>
202-
id.includes('/graphql/') || id.includes('.graphql') || id.includes('.resolver.ts') || id.includes('.gql'),
202+
id.endsWith('.graphql') || id.endsWith('.resolver.ts') || id.endsWith('.gql'),
203203
)) {
204204
return `chunks/graphql/[name].mjs`
205205
}

0 commit comments

Comments
 (0)