Mirror: Modular GraphQL.js import paths without the hassle.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Ensure we don't import from "graphql.mjs" (#2)

authored by

Jovi De Croock and committed by
GitHub
a5c12fc1 b7f33756

+1 -1
+1 -1
index.js
··· 26 26 27 27 const from = declaration ? declaration.from : PKG_NAME; 28 28 if (!acc[from]) { 29 - acc[from] = t.importDeclaration([], t.stringLiteral(from + extension)); 29 + acc[from] = t.importDeclaration([], t.stringLiteral(from === 'graphql' ? from : from + extension)); 30 30 } 31 31 32 32 const localName = specifier.local.name;