{"id":15048237,"url":"https://github.com/github/babel-plugin-transform-invariant-location","last_synced_at":"2025-10-04T07:31:42.487Z","repository":{"id":65974824,"uuid":"97981969","full_name":"github/babel-plugin-transform-invariant-location","owner":"github","description":"Babel plugin that rewrites invariant calls with their source location","archived":true,"fork":false,"pushed_at":"2020-08-03T15:40:45.000Z","size":4,"stargazers_count":13,"open_issues_count":0,"forks_count":7,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-09-30T00:20:33.743Z","etag":null,"topics":["babel-plugin","flow"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"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/github.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}},"created_at":"2017-07-21T19:53:37.000Z","updated_at":"2024-07-31T03:17:27.000Z","dependencies_parsed_at":"2023-02-19T18:01:11.617Z","dependency_job_id":null,"html_url":"https://github.com/github/babel-plugin-transform-invariant-location","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fbabel-plugin-transform-invariant-location","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fbabel-plugin-transform-invariant-location/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fbabel-plugin-transform-invariant-location/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fbabel-plugin-transform-invariant-location/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/babel-plugin-transform-invariant-location/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235227462,"owners_count":18956137,"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-plugin","flow"],"created_at":"2024-09-24T21:09:39.658Z","updated_at":"2025-10-04T07:31:37.238Z","avatar_url":"https://github.com/github.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# transform-invariant-location\n\nA Babel plugin to annotate [Flow `invariant()` calls](https://github.com/zertosh/invariant) with an additional string argument detailing the current file and line number. This is useful to track down exceptions that are raised by `invariant()` in minified bundles at runtime.\n\nBefore:\n\n```js\ninvariant(foo)\ninvariant(foo, \"foo is missing\")\n```\n\nAfter:\n\n```js\ninvariant(foo, \"path/to/source.js:42\")\ninvariant(foo, \"foo is missing -- path/to/source.js:42\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fbabel-plugin-transform-invariant-location","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Fbabel-plugin-transform-invariant-location","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fbabel-plugin-transform-invariant-location/lists"}