babel-plugin-modular-graphql
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -29,3 +29,3 @@ module.exports = function babelPluginModularGraphql({ types: t }, options = {}) { | ||
if (!acc[from]) { | ||
acc[from] = t.importDeclaration([], t.stringLiteral(from + extension)); | ||
acc[from] = t.importDeclaration([], t.stringLiteral(from === 'graphql' ? from : from + extension)); | ||
} | ||
@@ -32,0 +32,0 @@ |
{ | ||
"name": "babel-plugin-modular-graphql", | ||
"description": "Modular GraphQL.js import paths without the hassle", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "author": "Phil Pluckthun <phil@kitten.sh>", |
26147