babel-plugin-essor 0.0.7-beta.6 → 0.0.10-beta.21
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 +20 -6
- package/dist/index.cjs +228 -452
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +231 -452
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
# Essor babel plugin
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Install
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npm install @
|
|
6
|
+
npm install @estjs/babel-plugin --save-dev
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Usage
|
|
10
10
|
|
|
11
|
+
```js
|
|
12
|
+
import EssorBabelPlugin from '@estjs/babel-plugin';
|
|
13
|
+
{
|
|
14
|
+
"plugins": [[EssorBabelPlugin,pluginOptions]]
|
|
15
|
+
}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Options
|
|
11
19
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
+
}
|