{"id":15020174,"url":"https://github.com/ohbug-org/unplugin-ohbug","last_synced_at":"2026-01-21T14:34:35.107Z","repository":{"id":55835503,"uuid":"405884456","full_name":"ohbug-org/unplugin-ohbug","owner":"ohbug-org","description":"plugin for upload your sourceMap files to Ohbug","archived":false,"fork":false,"pushed_at":"2022-08-29T06:22:21.000Z","size":339,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-08T20:35:48.729Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ohbug-org.png","metadata":{"files":{"readme":"README-zh_CN.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["chenyueban"]}},"created_at":"2021-09-13T08:00:58.000Z","updated_at":"2022-08-10T07:47:41.000Z","dependencies_parsed_at":"2022-08-15T07:40:22.952Z","dependency_job_id":null,"html_url":"https://github.com/ohbug-org/unplugin-ohbug","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":"unplugin/unplugin-starter","purl":"pkg:github/ohbug-org/unplugin-ohbug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohbug-org%2Funplugin-ohbug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohbug-org%2Funplugin-ohbug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohbug-org%2Funplugin-ohbug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohbug-org%2Funplugin-ohbug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohbug-org","download_url":"https://codeload.github.com/ohbug-org/unplugin-ohbug/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohbug-org%2Funplugin-ohbug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28634832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-09-24T19:54:40.920Z","updated_at":"2026-01-21T14:34:30.099Z","avatar_url":"https://github.com/ohbug-org.png","language":"TypeScript","funding_links":["https://github.com/sponsors/chenyueban"],"categories":[],"sub_categories":[],"readme":"# `@ohbug/unplugin`\n\n[![npm](https://img.shields.io/npm/v/@ohbug/unplugin.svg?style=flat-square)](https://www.npmjs.com/package/@ohbug/unplugin)\n[![npm bundle size](https://img.shields.io/bundlephobia/min/@ohbug/unplugin?style=flat-square)](https://bundlephobia.com/result?p=@ohbug/unplugin)\n\n[English](./README.md) | 简体中文\n\n为 Vite, Webpack 和 Rollup 自动上传 sourceMap 文件至 Ohbug. 由 [unplugin](https://github.com/unjs/unplugin) 驱动.\n\n## 安装\n\n```\nnpm install @ohbug/unplugin -D\n```\n\n## 使用\n\n\u003cdetails\u003e\n\u003csummary\u003eVite\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// vite.config.ts\nimport OhbugUnplugin from '@ohbug/unplugin/vite'\n\nexport default defineConfig({\n  plugins: [\n    OhbugUnplugin({\n      apiKey: 'YOUR_API_KEY',\n      appVersion: 'YOUR_APP_VERSION',\n    }),\n  ],\n})\n```\n\nExample: [`playground/`](./playground/)\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eRollup\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// rollup.config.js\nimport OhbugUnplugin from '@ohbug/unplugin/rollup'\n\nexport default {\n  plugins: [\n    OhbugUnplugin({\n      apiKey: 'YOUR_API_KEY',\n      appVersion: 'YOUR_APP_VERSION',\n    }),\n    // other plugins\n  ],\n}\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eWebpack\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// webpack.config.js\nmodule.exports = {\n  /* ... */\n  plugins: [\n    require('@ohbug/unplugin/webpack')({\n      apiKey: 'YOUR_API_KEY',\n      appVersion: 'YOUR_APP_VERSION',\n    }),\n  ],\n}\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eNuxt\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// nuxt.config.js\nexport default {\n  buildModules: [\n    [\n      '@ohbug/unplugin/nuxt',\n      {\n        apiKey: 'YOUR_API_KEY',\n        appVersion: 'YOUR_APP_VERSION',\n      },\n    ],\n  ],\n}\n```\n\n\u003e This module works for both Nuxt 2 and [Nuxt Vite](https://github.com/nuxt/vite)\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eVue CLI\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// vue.config.js\nmodule.exports = {\n  configureWebpack: {\n    plugins: [\n      require('@ohbug/unplugin/webpack')({\n        apiKey: 'YOUR_API_KEY',\n        appVersion: 'YOUR_APP_VERSION',\n      }),\n    ],\n  },\n}\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eesbuild\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// esbuild.config.js\nimport { build } from 'esbuild'\nimport Starter from '@ohbug/unplugin/esbuild'\n\nbuild({ plugins: [Starter()] })\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n## Options\n\n```typescript\ninterface Options {\n  apiKey: string\n  appVersion: string\n  appType?: string\n  endpoint?: string\n  deleteAfterUploading?: boolean\n}\n```\n\n### apiKey\n\n这里作为客户端的唯一标识。\n\n### appVersion\n\n您应该提供 app 的版本号/标识符，以便于定位问题出现的时机。\n\n### appType\n\n如果您的 app 的代码库包含不同的入口，但向同一个服务上报，则可能需要添加 `appType` 表示问题来源的入口类型。\n\n### endpoint\n\n上传服务器的 URL\n\n### deleteAfterUploading\n\n上传后删除 sourceMap 默认为 `false`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohbug-org%2Funplugin-ohbug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohbug-org%2Funplugin-ohbug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohbug-org%2Funplugin-ohbug/lists"}