{"id":19426591,"url":"https://github.com/pubdreamcc/babel-plugin-resolve-vconsole","last_synced_at":"2026-05-16T02:03:47.847Z","repository":{"id":99931794,"uuid":"319507853","full_name":"pubdreamcc/babel-plugin-resolve-vconsole","owner":"pubdreamcc","description":"A babel plugin to automatically remove the vconsole in the production environment","archived":false,"fork":false,"pushed_at":"2020-12-24T03:50:30.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-07T19:38:24.611Z","etag":null,"topics":["babel","babel-plugin"],"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/pubdreamcc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-08T02:54:37.000Z","updated_at":"2020-12-24T03:50:57.000Z","dependencies_parsed_at":"2023-03-15T02:32:34.362Z","dependency_job_id":null,"html_url":"https://github.com/pubdreamcc/babel-plugin-resolve-vconsole","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubdreamcc%2Fbabel-plugin-resolve-vconsole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubdreamcc%2Fbabel-plugin-resolve-vconsole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubdreamcc%2Fbabel-plugin-resolve-vconsole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubdreamcc%2Fbabel-plugin-resolve-vconsole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pubdreamcc","download_url":"https://codeload.github.com/pubdreamcc/babel-plugin-resolve-vconsole/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240605840,"owners_count":19827985,"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"],"created_at":"2024-11-10T14:08:15.561Z","updated_at":"2026-05-16T02:03:42.798Z","avatar_url":"https://github.com/pubdreamcc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 公司移动端项目打包自动去除 vconsole 代码\n\n## Usage\n\n```npm\nnpm i babel-plugin-resolve-vconsole --save-dev (or yarn)\n```\n\n* in babel config file (eg .babelrc)\n\n```js\n{\n  plugins: ['remove-vconsole']\n}\n```\n\n* webpack production config file\n\n```js\n\n{\n  test: /\\.(js|jsx|mjs)$/,\n  include: paths.appSrc,\n  loader: require.resolve('babel-loader'),\n  options: {\n    customize: require.resolve(\n      'babel-preset-react-app/webpack-overrides'\n    ),\n\n    plugins: ['remove-vconsole', ...],\n\n    // This is a feature of `babel-loader` for webpack (not Babel itself).\n    // It enables caching results in ./node_modules/.cache/babel-loader/\n    // directory for faster rebuilds.\n    cacheDirectory: true,\n    cacheCompression: true,\n    compact: true\n  }\n}\n```\n\n打包之后，自动去除 Vconsole 的 引入\n\n```js\nimport VConsole from 'vconsole';\nnew VConsole();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpubdreamcc%2Fbabel-plugin-resolve-vconsole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpubdreamcc%2Fbabel-plugin-resolve-vconsole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpubdreamcc%2Fbabel-plugin-resolve-vconsole/lists"}