{"id":17258177,"url":"https://github.com/asapach/babel-plugin-transform-require-context","last_synced_at":"2025-04-14T05:51:29.542Z","repository":{"id":31866785,"uuid":"129250636","full_name":"asapach/babel-plugin-transform-require-context","owner":"asapach","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-18T22:46:47.000Z","size":526,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T20:48:53.088Z","etag":null,"topics":["babel","nodejs","webpack"],"latest_commit_sha":null,"homepage":null,"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/asapach.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-12T12:50:48.000Z","updated_at":"2024-11-18T22:46:44.000Z","dependencies_parsed_at":"2023-01-14T19:56:02.277Z","dependency_job_id":"12cb773e-8ba4-4bf9-a27c-e9c1f7b21f07","html_url":"https://github.com/asapach/babel-plugin-transform-require-context","commit_stats":{"total_commits":36,"total_committers":4,"mean_commits":9.0,"dds":0.5,"last_synced_commit":"8461ee8bd16bd0ba2617edaa4697c70da03ba431"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asapach%2Fbabel-plugin-transform-require-context","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asapach%2Fbabel-plugin-transform-require-context/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asapach%2Fbabel-plugin-transform-require-context/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asapach%2Fbabel-plugin-transform-require-context/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asapach","download_url":"https://codeload.github.com/asapach/babel-plugin-transform-require-context/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830389,"owners_count":21168272,"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","nodejs","webpack"],"created_at":"2024-10-15T07:19:42.965Z","updated_at":"2025-04-14T05:51:29.513Z","avatar_url":"https://github.com/asapach.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel-plugin-transform-require-context\n\n[![NPM Downloads](https://img.shields.io/npm/dw/babel-plugin-transform-require-context)](https://npmjs.org/package/babel-plugin-transform-require-context)\n\nA [Babel](http://babeljs.io) plugin that transforms [webpack](https://webpack.js.org/)-specific `require.context()`\ninto dummy function calls so that the code can run safely outside of the webpack environment, e.g. in Node.\nIt doesn't perform any file lookup or dynamic require, but should not break the code otherwise.\n\n## Installation\n\n```sh\n$ npm install babel-plugin-transform-require-context\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```javascript\n{\n  \"plugins\": [\"transform-require-context\"]\n}\n```\n\n### Via CLI\n\n```sh\n$ babel --plugins transform-require-context script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"@babel/core\").transform(\"code\", {\n  plugins: [\"transform-require-context\"]\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasapach%2Fbabel-plugin-transform-require-context","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasapach%2Fbabel-plugin-transform-require-context","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasapach%2Fbabel-plugin-transform-require-context/lists"}