{"id":22808894,"url":"https://github.com/morganney/babel-plugin-magic-comments","last_synced_at":"2026-02-18T18:00:59.768Z","repository":{"id":177936503,"uuid":"661115075","full_name":"morganney/babel-plugin-magic-comments","owner":"morganney","description":"Adds webpack magic comments to your dynamic imports.","archived":false,"fork":false,"pushed_at":"2024-09-01T03:31:34.000Z","size":262,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T06:36:49.993Z","etag":null,"topics":["babel-plugin","magic-comments","webpack"],"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/morganney.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-01T20:50:34.000Z","updated_at":"2024-02-04T01:50:02.000Z","dependencies_parsed_at":"2025-10-10T06:34:32.617Z","dependency_job_id":"57e6efc5-835b-4846-95e8-b383b744eabb","html_url":"https://github.com/morganney/babel-plugin-magic-comments","commit_stats":null,"previous_names":["morganney/babel-plugin-magic-comments"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/morganney/babel-plugin-magic-comments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morganney%2Fbabel-plugin-magic-comments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morganney%2Fbabel-plugin-magic-comments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morganney%2Fbabel-plugin-magic-comments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morganney%2Fbabel-plugin-magic-comments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morganney","download_url":"https://codeload.github.com/morganney/babel-plugin-magic-comments/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morganney%2Fbabel-plugin-magic-comments/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29588776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T16:55:40.614Z","status":"ssl_error","status_checked_at":"2026-02-18T16:55:37.558Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-plugin","magic-comments","webpack"],"created_at":"2024-12-12T11:12:43.900Z","updated_at":"2026-02-18T18:00:59.744Z","avatar_url":"https://github.com/morganney.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [`babel-plugin-magic-comments`](https://www.npmjs.com/package/babel-plugin-magic-comments)\n\n![CI](https://github.com/morganney/babel-plugin-magic-comments/actions/workflows/ci.yml/badge.svg)\n[![codecov](https://codecov.io/gh/morganney/babel-plugin-magic-comments/branch/main/graph/badge.svg?token=92J7AMZH8N)](https://codecov.io/gh/morganney/babel-plugin-magic-comments)\n[![NPM version](https://img.shields.io/npm/v/babel-plugin-magic-comments.svg)](https://www.npmjs.com/package/babel-plugin-magic-comments)\n\nBabel plugin to add webpack [magic comments](https://webpack.js.org/api/module-methods/#magic-comments) to your dynamic `import()` expressions at build time.\n\n## Getting Started\n\nFirst install `babel-plugin-magic-comments`:\n\n```\nnpm install babel-plugin-magic-comments\n```\n\nNext add the plugin to your `babel.config.js`:\n\n```js\nexport default () =\u003e {\n  return {\n    plugins: [\n      ['magic-comments', {\n        verbose: true,\n        webpackChunkName: true,\n        webpackFetchPriority: \"high\"\n      }]\n    ]\n  }\n}\n```\n\nOr include it directly in your `webpack.config.js`:\n\n```js\nmodule: {\n  rules: [\n    {\n      test: /\\.[jt]sx?$/,\n      use: {\n        loader: 'babel-loader',\n        options: {\n          plugins: [\n            ['magic-comments', {\n              verbose: true,\n              webpackChunkName: true,\n              webpackFetchPriority: \"high\"\n            }]\n          ]\n        }\n      }\n    }\n  ]\n}\n```\n\n## Options\n\nThe options are the same as those used by [`magic-comments-loader`](https://github.com/morganney/magic-comments-loader#options), with the exception of `mode` (not supported).\n\n## Examples\n\nFor some more usage examples you can check out the ones provided by [`magic-comments-loader`](https://github.com/morganney/magic-comments-loader#examples), particularly the loader's `options`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorganney%2Fbabel-plugin-magic-comments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorganney%2Fbabel-plugin-magic-comments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorganney%2Fbabel-plugin-magic-comments/lists"}