{"id":13725390,"url":"https://github.com/0no-co/babel-plugin-modular-graphql","last_synced_at":"2025-05-07T20:32:12.087Z","repository":{"id":45444362,"uuid":"256005498","full_name":"0no-co/babel-plugin-modular-graphql","owner":"0no-co","description":"Modular GraphQL.js import paths without the hassle.","archived":false,"fork":false,"pushed_at":"2021-12-13T18:19:59.000Z","size":64,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-23T07:04:30.386Z","etag":null,"topics":["babel","babel-plugin","graphql"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0no-co.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-15T18:37:59.000Z","updated_at":"2022-08-18T18:17:44.000Z","dependencies_parsed_at":"2022-09-10T02:22:03.015Z","dependency_job_id":null,"html_url":"https://github.com/0no-co/babel-plugin-modular-graphql","commit_stats":null,"previous_names":["kitten/babel-plugin-modular-graphql"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0no-co%2Fbabel-plugin-modular-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0no-co%2Fbabel-plugin-modular-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0no-co%2Fbabel-plugin-modular-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0no-co%2Fbabel-plugin-modular-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0no-co","download_url":"https://codeload.github.com/0no-co/babel-plugin-modular-graphql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224645354,"owners_count":17346131,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babel","babel-plugin","graphql"],"created_at":"2024-08-03T01:02:21.556Z","updated_at":"2024-11-14T15:31:15.188Z","avatar_url":"https://github.com/0no-co.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# babel-plugin-modular-graphql\n\nA small transform plugin to cherry-pick GraphQL modules so you don’t have to.\nBasically [babel-plugin-lodash](https://github.com/lodash/babel-plugin-lodash) for [graphql](https://github.com/graphql/graphql-js).\n\nThis automatically finds the most specific import from the graphql module's files and folders that works\nacross GraphQL.js v14, v15, and v16.\n\n## Getting Started\n\n```sh\nnpm install --save-dev babel-plugin-modular-graphql\n# or\nyarn add --dev babel-plugin-modular-graphql\n```\n\nAnd add the plugin to your Babel config; it doesn't take any options.\n\n## Example\n\nImports like these:\n\n```js\nimport { parse, Kind } from 'graphql';\n```\n\nBecome:\n\n```js\nimport { parse } from \"graphql/language/parser\";\nimport { Kind } from \"graphql/language/kinds\";\n```\n\n## Limitations\n\n- The plugin currently does not support `require()`\n- The plugin automatically generates an import-map that drills down into `graphql`'s files. This may break if files at a depth of 1–2 change their names.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0no-co%2Fbabel-plugin-modular-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0no-co%2Fbabel-plugin-modular-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0no-co%2Fbabel-plugin-modular-graphql/lists"}