Skip to content

Commit 7e6b862

Browse files
committed
fix: Add fallback extension to preset config
1 parent 7e788e6 commit 7e6b862

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default function VitePluginGraphQLCodegen(): Plugin {
5050
// If generated path is directory
5151
const { preset = '', presetConfig } = genConfig;
5252
const isNearOperationFilePreset = preset === 'near-operation-file';
53-
const presetExt = presetConfig?.extension ?? '';
53+
const presetExt = presetConfig?.extension ?? '.generated.ts';
5454
if (isNearOperationFilePreset && match(`**/*${presetExt}`)) return;
5555
}
5656

0 commit comments

Comments
 (0)