babel-plugin-essor 0.0.14 → 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 CHANGED
@@ -1,28 +1,24 @@
1
- # Essor babel plugin
1
+ # babel-plugin-essor
2
2
 
3
- ## Install
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 --save-dev
8
+ npm install -D babel-plugin-essor
7
9
  ```
8
10
 
9
- ## Usage
11
+ ## Configuration
12
+
13
+ Add it to your Babel configuration:
10
14
 
11
- ```js
12
- import EssorBabelPlugin from 'babel-plugin-essor';
15
+ ```json
13
16
  {
14
- "plugins": [[EssorBabelPlugin,pluginOptions]]
17
+ "plugins": ["babel-plugin-essor"]
15
18
  }
16
19
  ```
17
20
 
18
- ## Options
19
21
 
20
- ```json
21
- {
22
- // translate signal symbol,default "$"
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