We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e788e6 commit 7e6b862Copy full SHA for 7e6b862
1 file changed
src/index.ts
@@ -50,7 +50,7 @@ export default function VitePluginGraphQLCodegen(): Plugin {
50
// If generated path is directory
51
const { preset = '', presetConfig } = genConfig;
52
const isNearOperationFilePreset = preset === 'near-operation-file';
53
- const presetExt = presetConfig?.extension ?? '';
+ const presetExt = presetConfig?.extension ?? '.generated.ts';
54
if (isNearOperationFilePreset && match(`**/*${presetExt}`)) return;
55
}
56
0 commit comments