babel-plugin-realar
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "babel-plugin-realar", | ||
"description": "Automatic observe jsx arrow functions for Realar", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"main": "./src/plugin.js", | ||
@@ -14,6 +14,7 @@ "files": [ | ||
}, | ||
"dependencies": { | ||
"@babel/core": "7.12.10" | ||
"peerDependencies": { | ||
"@babel/core": "*" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.12.10", | ||
"jest": "26.6.3", | ||
@@ -20,0 +21,0 @@ "prettier": "2.2.1" |
@@ -7,7 +7,7 @@ # babel-plugin-realar | ||
That plugin for babel wrap all not wrapped arrow function (that contains JSX) to Realar `observe` function. Less code more effectivity! | ||
That plugin for babel wraps all not wrapped arrow functions (that contains JSX) to Realar `observe` function. Less code more effectivity! | ||
```javascript | ||
import React from 'react'; | ||
import { shared } from 'realar'; | ||
import { box, shared } from 'realar'; | ||
@@ -23,3 +23,2 @@ class Ticker { | ||
const { value, next } = sharedTicker(); | ||
return ( | ||
@@ -35,2 +34,4 @@ <> | ||
[See wrapped version of it on CodeSandbox](https://codesandbox.io/s/realar-jsx-observe-example-5f2k2?file=/src/App.tsx) | ||
You are no need more to wrap (decorate) JSX components to `observe` function! It will be automatic. | ||
@@ -37,0 +38,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5022
56
3
+ Added@ampproject/remapping@2.3.0(transitive)
+ Added@babel/compat-data@7.26.2(transitive)
+ Added@babel/core@7.26.0(transitive)
+ Added@babel/helper-compilation-targets@7.25.9(transitive)
+ Added@babel/helper-validator-option@7.25.9(transitive)
+ Addedbrowserslist@4.24.2(transitive)
+ Addedcaniuse-lite@1.0.30001680(transitive)
+ Addedconvert-source-map@2.0.0(transitive)
+ Addedelectron-to-chromium@1.5.59(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addednode-releases@2.0.18(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedupdate-browserslist-db@1.1.1(transitive)
+ Addedyallist@3.1.1(transitive)
- Removed@babel/core@7.12.10
- Removed@babel/core@7.12.10(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedsemver@5.7.2(transitive)
- Removedsource-map@0.5.7(transitive)