babel-plugin-essor 0.0.14-beta.9 → 0.0.15-beta.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.
- package/README.md +13 -17
- package/dist/index.cjs +2169 -576
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -18
- package/dist/index.d.ts +2 -18
- package/dist/index.js +2166 -573
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,28 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# babel-plugin-essor
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Babel plugin for **Essor**. It transforms JSX into Essor's runtime calls and provides syntax sugar for working with signals.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
4
6
|
|
|
5
7
|
```bash
|
|
6
|
-
npm install babel-plugin-essor
|
|
8
|
+
npm install -D babel-plugin-essor
|
|
7
9
|
```
|
|
8
10
|
|
|
9
|
-
##
|
|
11
|
+
## Configuration
|
|
12
|
+
|
|
13
|
+
Add it to your Babel configuration:
|
|
10
14
|
|
|
11
|
-
```
|
|
12
|
-
import EssorBabelPlugin from 'babel-plugin-essor';
|
|
15
|
+
```json
|
|
13
16
|
{
|
|
14
|
-
"plugins": [
|
|
17
|
+
"plugins": ["babel-plugin-essor"]
|
|
15
18
|
}
|
|
16
19
|
```
|
|
17
20
|
|
|
18
|
-
## Options
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"symbol":"$",
|
|
24
|
-
// enable ssg, dot use it,not a stable API
|
|
25
|
-
"ssg":false,
|
|
26
|
-
// enable props translate,default true
|
|
27
|
-
"props":true
|
|
28
|
-
}
|
|
22
|
+
## License
|
|
23
|
+
|
|
24
|
+
MIT
|