From e1652fe63f48dd45f78952671563511b8298359c Mon Sep 17 00:00:00 2001 From: Michael Kochendorfer Date: Thu, 5 Jul 2018 16:10:55 -0700 Subject: [PATCH] Ignore duplicate interfaces from imports when using webpack loader --- loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader.js b/loader.js index 14b2f68d..83d1004e 100644 --- a/loader.js +++ b/loader.js @@ -13,7 +13,7 @@ function expandImports(source, doc) { function unique(defs) { return defs.filter( function(def) { - if (def.kind !== 'FragmentDefinition') return true; + if (def.kind !== 'FragmentDefinition' && def.kind !== 'InterfaceTypeDefinition') return true; var name = def.name.value if (names[name]) { return false;