{"repo":"detrohutt/babel-plugin-import-graphql","free":true,"listed":false,"github":"https://github.com/detrohutt/babel-plugin-import-graphql","clone":"git clone https://github.com/detrohutt/babel-plugin-import-graphql.git","description":"Enables import syntax for .graphql and .gql files","language":"JavaScript","stars":314,"topics":["graphql","apollo","react-native","nextjs","babel-plugin","graphql-ast","schema","parse","fragment-imports","graphql-files"],"license":"MIT","category":"mobile-apps","readme_excerpt":"babel-plugin-import-graphql Babel plugin enabling import syntax for .graphql and .gql files. For users of the old package name (babel-plugin-inline-import-graphql-ast) Deprecation/Migration notes As of May 27, 2018, the babel-plugin-inline-import-graphql-ast package name is deprecated. Please use babel-plugin-import-graphql (NPM) instead. Migrating to babel-plugin-import-graphql Update your babel configuration Update plugins array: babel-plugin-inline-import-graphql-ast (or inline-import-graphql-ast ) - import-graphql . Update your package.json file Update the package name in devDependencies : babel-plugin-inline-import-graphql-ast - babel-plugin-import-graphql . Make sure your version string is compatible: The first correct version of babel-plugin-import-graphql is 2.4.4 so please make sure your version string matches that. For instance, \"babel-plugin-import-graphql\": \"^2.0.0\" is fine because of the caret. If you've pinned to a specific version, you'll need to upgrade and pin to at least 2.4.4 or widen your version range to include it. Congratulations, you're all set! --- If you enjoy my package please star the GitHub repo or share on Twitter (and follow me for updates)! Prerequisites babel-core@^7.20.7 or @babel/core@^7.0.0-beta.49 (Lower betas may work but weren't tested) graphql-tag@^2.9.2 (only if using the runtime option described below) Install or In .babelrc file: Each time you modify a GraphQL file, the cache must be cleared for the changes to take effect. If using n","default_branch":null,"files":null,"tree":[],"storefront":"/r/detrohutt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/detrohutt/babel-plugin-import-graphql/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}