@graphql-codegen/cli 6.3.0 → 6.3.1-alpha-20260418125934-8071e84d4c8fcbddf3ba16aeb3ec38ec02a6f0ec
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/codegen.js +3 -2
- package/esm/codegen.js +3 -2
- package/package.json +1 -1
package/cjs/codegen.js
CHANGED
|
@@ -299,11 +299,12 @@ async function executeCodegen(input) {
|
|
|
299
299
|
...outputExternalDocuments,
|
|
300
300
|
];
|
|
301
301
|
for (const file of mergedDocuments) {
|
|
302
|
-
|
|
302
|
+
const fileIdentifier = (file.location || '') + (file.hash || '');
|
|
303
|
+
if (processedFile[fileIdentifier]) {
|
|
303
304
|
continue;
|
|
304
305
|
}
|
|
305
306
|
outputDocuments.push(file);
|
|
306
|
-
processedFile[
|
|
307
|
+
processedFile[fileIdentifier] = true;
|
|
307
308
|
}
|
|
308
309
|
}, filename, `Load GraphQL documents: ${filename}`, ctx),
|
|
309
310
|
},
|
package/esm/codegen.js
CHANGED
|
@@ -295,11 +295,12 @@ export async function executeCodegen(input) {
|
|
|
295
295
|
...outputExternalDocuments,
|
|
296
296
|
];
|
|
297
297
|
for (const file of mergedDocuments) {
|
|
298
|
-
|
|
298
|
+
const fileIdentifier = (file.location || '') + (file.hash || '');
|
|
299
|
+
if (processedFile[fileIdentifier]) {
|
|
299
300
|
continue;
|
|
300
301
|
}
|
|
301
302
|
outputDocuments.push(file);
|
|
302
|
-
processedFile[
|
|
303
|
+
processedFile[fileIdentifier] = true;
|
|
303
304
|
}
|
|
304
305
|
}, filename, `Load GraphQL documents: ${filename}`, ctx),
|
|
305
306
|
},
|