swc-plugin-component-annotate 1.2.2 → 1.4.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swc-plugin-component-annotate",
3
- "version": "1.2.2",
3
+ "version": "1.4.0",
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",
package/src/lib.rs CHANGED
@@ -45,7 +45,7 @@ impl ReactComponentAnnotateVisitor {
45
45
  }
46
46
 
47
47
  #[inline]
48
- fn should_ignore_component(&self, component_name: &str) -> bool {
48
+ pub fn should_ignore_component(&self, component_name: &str) -> bool {
49
49
  self.ignored_components_set.contains(component_name)
50
50
  }
51
51
 
Binary file