{"_id":"@sentry/babel-component-annotate-plugin","_rev":"3-744ff114857d7a479bd095c0088ca688","name":"@sentry/babel-component-annotate-plugin","dist-tags":{"latest":"2.12.0"},"versions":{"2.12.0":{"name":"@sentry/babel-component-annotate-plugin","version":"2.12.0","keywords":["Sentry","React","bundler","plugin","babel","component","annotate"],"author":{"name":"Sentry"},"license":"MIT","_id":"@sentry/babel-component-annotate-plugin@2.12.0","maintainers":[{"name":"benvinegar","email":"ben@benv.ca"},{"name":"billyvg","email":"npm@mmo.me"},{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"haza","email":"daniel.griesser.86@gmail.com"},{"name":"jauer","email":"account@jauer.org"},{"name":"sentry-bot","email":"accounts@sentry.io"},{"name":"evanpurkhiser","email":"evanpurkhiser@gmail.com"},{"name":"lynnagara","email":"lyn.nagara@gmail.com"},{"name":"leedongwei","email":"danny@dongwei.li"},{"name":"markstory","email":"mark@mark-story.com"},{"name":"zeeg","email":"dcramer@gmail.com"}],"homepage":"https://github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/babel-component-annotate-plugin","bugs":{"url":"https://github.com/getsentry/sentry-javascript-bundler-plugins/issues"},"dist":{"shasum":"d5fbfa70e97ca4fba9996f749c0e09c713305f03","tarball":"https://registry.npmjs.org/@sentry/babel-component-annotate-plugin/-/babel-component-annotate-plugin-2.12.0.tgz","fileCount":9,"integrity":"sha512-SH3rGA+Bw+nprcofMRifoT8izUvUKKnj+PefgsuM+7J5ruUcvehJx+6LksMTl/wDEdbDnMaFupCdCwZjTSjNpg==","signatures":[{"sig":"MEUCIAxtR0QlcDC5WYcV5Z8OvQ8qP+wgHIPdN9ixaLiXurHqAiEAqUhuRnOBtZeodbrDYdgCgqm+558H2WqxdPJGAc/z3yo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":109727},"main":"dist/cjs/index.js","_from":"file:/tmp/craft-YjbGdh/sentry-babel-component-annotate-plugin-2.12.0.tgz","types":"dist/types/index.d.ts","volta":{"extends":"../../package.json"},"module":"dist/esm/index.mjs","engines":{"node":">= 14"},"exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.mjs","require":"./dist/cjs/index.js"}},"scripts":{"lint":"eslint ./src ./test","test":"jest","build":"rimraf ./out && run-p build:rollup build:types","clean":"run-s clean:build","build:npm":"npm pack","clean:all":"run-p clean clean:deps","clean:deps":"rimraf node_modules","build:types":"tsc --project types.tsconfig.json","build:watch":"run-p build:rollup:watch build:types:watch","check:types":"run-p check:types:src check:types:test","clean:build":"rimraf ./dist *.tgz","build:rollup":"rollup --config rollup.config.js","check:types:src":"tsc --project ./src/tsconfig.json --noEmit","check:types:test":"tsc --project ./test/tsconfig.json --noEmit","build:types:watch":"tsc --project types.tsconfig.json --watch --preserveWatchOutput","build:rollup:watch":"rollup --config rollup.config.js --watch --no-watch.clearScreen"},"_npmUser":{"name":"sentry-bot","email":"accounts@sentry.io"},"_resolved":"","_integrity":"","repository":{"url":"git://github.com/getsentry/sentry-javascript-bundler-plugins.git","type":"git"},"_npmVersion":"6.14.18","description":"A Babel plugin that annotates frontend components with additional data to enrich the experience in Sentry","directories":{},"_nodeVersion":"14.21.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.1","eslint":"^8.18.0","rimraf":"^3.0.2","rollup":"2.75.7","ts-node":"^10.9.1","@swc/core":"^1.2.205","@swc/jest":"^0.2.21","typescript":"^4.7.4","@babel/core":"7.18.5","@types/jest":"^28.1.3","@types/node":"^18.6.3","@types/uuid":"^9.0.1","@babel/preset-env":"7.18.2","@babel/preset-react":"^7.23.3","@rollup/plugin-babel":"5.3.1","@babel/preset-typescript":"7.17.12","@rollup/plugin-node-resolve":"13.3.0","@sentry-internal/eslint-config":"2.12.0","@sentry-internal/sentry-bundler-plugin-tsconfig":"2.12.0"},"_npmOperationalInternal":{"tmp":"tmp/babel-component-annotate-plugin_2.12.0_1706904758678_0.6346157329530044","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-02-02T20:12:38.527Z","modified":"2025-11-25T14:44:03.592Z","2.12.0":"2024-02-02T20:12:38.847Z"},"bugs":{"url":"https://github.com/getsentry/sentry-javascript-bundler-plugins/issues"},"author":{"name":"Sentry"},"license":"MIT","homepage":"https://github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/babel-component-annotate-plugin","keywords":["Sentry","React","bundler","plugin","babel","component","annotate"],"repository":{"url":"git://github.com/getsentry/sentry-javascript-bundler-plugins.git","type":"git"},"description":"A Babel plugin that annotates frontend components with additional data to enrich the experience in Sentry","maintainers":[{"email":"accounts@sentry.io","name":"sentry-bot"}],"readme":"<p align=\"center\">\n  <a href=\"https://sentry.io/?utm_source=github&utm_medium=logo\" target=\"_blank\">\n    <img src=\"https://sentry-brand.storage.googleapis.com/sentry-wordmark-dark-280x84.png\" alt=\"Sentry\" width=\"280\" height=\"84\">\n  </a>\n</p>\n\n# Sentry Babel Component Annotate Plugin (Beta)\n\n[![npm version](https://img.shields.io/npm/v/@sentry/babel-component-annotate-plugin.svg)](https://www.npmjs.com/package/@sentry/babel-component-annotate-plugin)\n[![npm dm](https://img.shields.io/npm/dm/@sentry/babel-component-annotate-plugin.svg)](https://www.npmjs.com/package/@sentry/babel-component-annotate-plugin)\n[![npm dt](https://img.shields.io/npm/dt/@sentry/babel-component-annotate-plugin.svg)](https://www.npmjs.com/package/@babel-component-annotate-plugin)\n\nThis plugin is currently in beta. Please help us improve by [reporting any issues or giving us feedback](https://github.com/getsentry/sentry-javascript-bundler-plugins/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc).\n\nA Babel plugin that automatically annotates your output DOM with their respective frontend component names.\nThis will unlock the capability to search for Replays in Sentry by component name, as well as see component names in breadcrumbs and performance monitoring.\nPlease note that your Sentry JavaScript SDK version must be at least `7.91.0` to take advantage of these features.\nCurrently, this plugin only works with React, and will exclusively parse `.jsx` and `.tsx` files.\n\n### Note\n\nThis plugin comes included in Sentry's bundler plugins, alongside many other features to improve your Sentry workflow.\nIt can be downloaded individually, but it is recommended that you install the bundler plugins for your respective bundler, and enable this feature through the config object.\n\nCheck out the supported bundler plugin packages for installation instructions:\n\n- [Rollup](https://www.npmjs.com/package/@sentry/rollup-plugin)\n- [Vite](https://www.npmjs.com/package/@sentry/vite-plugin)\n- [Webpack](https://www.npmjs.com/package/@sentry/webpack-plugin)\n- esbuild: Not currently supported\n\n## Installation\n\nUsing npm:\n\n```bash\nnpm install @sentry/babel-component-annotate-plugin --save-dev\n```\n\nUsing yarn:\n\n```bash\nyarn add @sentry/babel-component-annotate-plugin --dev\n```\n\nUsing pnpm:\n\n```bash\npnpm install @sentry/babel-component-annotate-plugin --dev\n```\n\n## Example\n\n```js\n// babel.config.js\n\n{\n  // ... other config above ...\n\n  plugins: [\n    // Put this plugin before any other plugins you have that transform JSX code\n    ['@sentry/babel-component-annotate-plugin']\n  ],\n}\n```\n\nOr alternatively, configure the plugin by directly importing it:\n\n```js\n// babel.config.js\n\nimport {componentNameAnnotatePlugin} from '@sentry/babel-component-annotate-plugin';\n\n{\n  // ... other config above ...\n\n  plugins: [\n    // Put this plugin before any other plugins you have that transform JSX code\n    [componentNameAnnotatePlugin]\n  ],\n}\n```\n\n## More information\n\n- [Sentry Documentation](https://docs.sentry.io/quickstart/)\n- [Sentry Discord](https://discord.gg/Ww9hbqr)\n- [Sentry Stackoverflow](http://stackoverflow.com/questions/tagged/sentry)\n","readmeFilename":"README.md"}