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

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

Changed files
+1 -1
+1 -1
index.js
···
const from = declaration ? declaration.from : PKG_NAME;
if (!acc[from]) {
-
acc[from] = t.importDeclaration([], t.stringLiteral(from + extension));
+
acc[from] = t.importDeclaration([], t.stringLiteral(from === 'graphql' ? from : from + extension));
}
const localName = specifier.local.name;