{"id":16590654,"url":"https://github.com/oliviertassinari/babel-plugin-transform-dev-warning","last_synced_at":"2025-03-21T13:31:19.273Z","repository":{"id":65336356,"uuid":"48539270","full_name":"oliviertassinari/babel-plugin-transform-dev-warning","owner":"oliviertassinari","description":"Remove development warning from production code","archived":false,"fork":false,"pushed_at":"2019-07-20T15:20:12.000Z","size":34,"stargazers_count":15,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T01:43:08.124Z","etag":null,"topics":["babel","babel-plugin","dev","warning"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oliviertassinari.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-24T11:01:32.000Z","updated_at":"2023-01-28T17:34:05.000Z","dependencies_parsed_at":"2023-01-17T16:58:22.480Z","dependency_job_id":null,"html_url":"https://github.com/oliviertassinari/babel-plugin-transform-dev-warning","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/oliviertassinari%2Fbabel-plugin-transform-dev-warning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliviertassinari%2Fbabel-plugin-transform-dev-warning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliviertassinari%2Fbabel-plugin-transform-dev-warning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliviertassinari%2Fbabel-plugin-transform-dev-warning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oliviertassinari","download_url":"https://codeload.github.com/oliviertassinari/babel-plugin-transform-dev-warning/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244806091,"owners_count":20513378,"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","dev","warning"],"created_at":"2024-10-11T23:13:52.280Z","updated_at":"2025-03-21T13:31:18.947Z","avatar_url":"https://github.com/oliviertassinari.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Babel Plugin for removing warning call\n\n[![Build Status](https://travis-ci.org/oliviertassinari/babel-plugin-transform-dev-warning.svg?branch=master)](https://travis-ci.org/oliviertassinari/babel-plugin-transform-dev-warning)\n[![npm version](https://img.shields.io/npm/v/babel-plugin-transform-dev-warning.svg?style=flat-square)](https://www.npmjs.com/package/babel-plugin-transform-dev-warning)\n[![npm downloads](https://img.shields.io/npm/dm/babel-plugin-transform-dev-warning.svg?style=flat-square)](https://www.npmjs.com/package/babel-plugin-transform-dev-warning)\n\nThis plugin removes development warning from production code.\nIt's recommended to be used with https://github.com/BerkeleyTrue/warning.\n\n## Example\n\n**In**\n```js\nwarning(condition, argument, argument);\n```\n\n**Out**\n```js\nif (process.env.NODE_ENV !== 'production') {\n  warning(condition, argument, argument);\n}\n```\n\n## Installation\n\n```sh\n$ npm install --save-dev babel-plugin-transform-dev-warning\n```\n\n## Usage\n\n#### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"env\": {\n    \"production\": {\n      \"plugins\": [\"transform-dev-warning\"]\n    }\n  }\n}\n```\n\n#### Via CLI\n\n```sh\n$ babel --plugins transform-dev-warning script.js\n```\n\n#### Via Node API\n\n```js\nrequire(\"babel-core\").transform(\"code\", {\n  plugins: [\"transform-dev-warning\"]\n});\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliviertassinari%2Fbabel-plugin-transform-dev-warning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foliviertassinari%2Fbabel-plugin-transform-dev-warning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliviertassinari%2Fbabel-plugin-transform-dev-warning/lists"}