6
6
7
7
# Sentry Babel Component Annotate Plugin (Beta)
8
8
9
- [ ![ npm version] ( https://img.shields.io/npm/v/@sentry/babel-component-annotate-plugin .svg )] ( https://www.npmjs.com/package/@sentry/babel-component-annotate-plugin )
10
- [ ![ npm dm] ( https://img.shields.io/npm/dm/@sentry/babel-component-annotate-plugin .svg )] ( https://www.npmjs.com/package/@sentry/babel-component-annotate-plugin )
11
- [ ![ npm dt] ( https://img.shields.io/npm/dt/@sentry/babel-component-annotate-plugin .svg )] ( https://www.npmjs.com/package/@babel-component-annotate-plugin )
9
+ [ ![ npm version] ( https://img.shields.io/npm/v/@sentry/babel-plugin- component-annotate.svg )] ( https://www.npmjs.com/package/@sentry/babel-plugin- component-annotate )
10
+ [ ![ npm dm] ( https://img.shields.io/npm/dm/@sentry/babel-plugin- component-annotate.svg )] ( https://www.npmjs.com/package/@sentry/babel-plugin- component-annotate )
11
+ [ ![ npm dt] ( https://img.shields.io/npm/dt/@sentry/babel-plugin- component-annotate.svg )] ( https://www.npmjs.com/package/@babel-plugin- component-annotate )
12
12
13
13
This 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 ) .
14
14
@@ -34,19 +34,19 @@ Check out the supported bundler plugin packages for installation instructions:
34
34
Using npm:
35
35
36
36
``` bash
37
- npm install @sentry/babel-component-annotate-plugin --save-dev
37
+ npm install @sentry/babel-plugin- component-annotate --save-dev
38
38
```
39
39
40
40
Using yarn:
41
41
42
42
``` bash
43
- yarn add @sentry/babel-component-annotate-plugin --dev
43
+ yarn add @sentry/babel-plugin- component-annotate --dev
44
44
```
45
45
46
46
Using pnpm:
47
47
48
48
``` bash
49
- pnpm install @sentry/babel-component-annotate-plugin --dev
49
+ pnpm install @sentry/babel-plugin- component-annotate --dev
50
50
```
51
51
52
52
## Example
@@ -59,7 +59,7 @@ pnpm install @sentry/babel-component-annotate-plugin --dev
59
59
60
60
plugins: [
61
61
// Put this plugin before any other plugins you have that transform JSX code
62
- [' @sentry/babel-component-annotate-plugin ' ]
62
+ [' @sentry/babel-plugin- component-annotate' ]
63
63
],
64
64
}
65
65
```
@@ -69,7 +69,7 @@ Or alternatively, configure the plugin by directly importing it:
69
69
``` js
70
70
// babel.config.js
71
71
72
- import {componentNameAnnotatePlugin } from ' @sentry/babel-component-annotate-plugin ' ;
72
+ import {componentNameAnnotatePlugin } from ' @sentry/babel-plugin- component-annotate' ;
73
73
74
74
{
75
75
// ... other config above ...
0 commit comments