swc-plugin-component-annotate 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # SWC Plugin: React Component Annotate
1
+ # SWC Plugin: Component Annotate
2
2
 
3
3
  A SWC plugin that automatically annotates React components with data attributes for component tracking and debugging.
4
4
 
@@ -23,9 +23,9 @@ This plugin transforms React components by adding data attributes that help with
23
23
  ## Installation
24
24
 
25
25
  ```bash
26
- npm install --save-dev swc-plugin-react-component-annotate
26
+ npm install --save-dev swc-plugin-component-annotate
27
27
  # or
28
- yarn add -D swc-plugin-react-component-annotate
28
+ yarn add -D swc-plugin-component-annotate
29
29
  ```
30
30
 
31
31
  ## Usage
@@ -39,7 +39,7 @@ Add the plugin to your `.swcrc` configuration:
39
39
  "jsc": {
40
40
  "experimental": {
41
41
  "plugins": [
42
- ["swc-plugin-react-component-annotate", {}]
42
+ ["swc-plugin-component-annotate", {}]
43
43
  ]
44
44
  }
45
45
  }
@@ -53,7 +53,7 @@ Add the plugin to your `.swcrc` configuration:
53
53
  "jsc": {
54
54
  "experimental": {
55
55
  "plugins": [
56
- ["swc-plugin-react-component-annotate", {
56
+ ["swc-plugin-component-annotate", {
57
57
  "native": false,
58
58
  "annotate-fragments": false,
59
59
  "ignored-components": ["MyIgnoredComponent"],
@@ -92,7 +92,7 @@ To use Sentry-specific attribute names for compatibility with Sentry's tracking:
92
92
  "jsc": {
93
93
  "experimental": {
94
94
  "plugins": [
95
- ["swc-plugin-react-component-annotate", {
95
+ ["swc-plugin-component-annotate", {
96
96
  "component-attr": "data-sentry-component",
97
97
  "element-attr": "data-sentry-element",
98
98
  "source-file-attr": "data-sentry-source-file"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swc-plugin-component-annotate",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Use SWC to automatically annotate React components with data attributes for component tracking",
5
5
  "author": "scttcper <scttcper@gmail.com>",
6
6
  "license": "MIT",