@fictjs/compiler 0.0.13 → 0.0.15
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 +14 -0
- package/dist/index.cjs +580 -238
- package/dist/index.js +580 -238
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,3 +15,17 @@ yarn add -D @fictjs/compiler
|
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
You can visit [Fict](https://github.com/fictjs/fict) for more documentation.
|
|
18
|
+
|
|
19
|
+
## Options
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
createFictPlugin({
|
|
23
|
+
dev: true,
|
|
24
|
+
onWarn(warning) {
|
|
25
|
+
console.warn(warning)
|
|
26
|
+
},
|
|
27
|
+
})
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
- `dev` (default: `NODE_ENV !== 'production' && NODE_ENV !== 'test'`): enables compiler warnings/diagnostics. Set to `false` to silence warnings.
|
|
31
|
+
- `onWarn`: custom warning handler (only called when `dev` is enabled).
|