@esportsplus/reactivity 0.24.0 → 0.24.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/package.json +1 -1
- package/readme.md +1 -17
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -100,7 +100,7 @@ cleanup(); // stops the effect
|
|
|
100
100
|
|
|
101
101
|
## Transformer Plugins
|
|
102
102
|
|
|
103
|
-
The library requires a build-time transformer to convert `reactive()` calls into optimized code.
|
|
103
|
+
The library requires a build-time transformer to convert `reactive()` calls into optimized code. Two plugins are available:
|
|
104
104
|
|
|
105
105
|
### Vite Plugin
|
|
106
106
|
|
|
@@ -116,22 +116,6 @@ export default defineConfig({
|
|
|
116
116
|
});
|
|
117
117
|
```
|
|
118
118
|
|
|
119
|
-
### esbuild Plugin
|
|
120
|
-
|
|
121
|
-
```typescript
|
|
122
|
-
import esbuild from 'esbuild';
|
|
123
|
-
import reactivity from '@esportsplus/reactivity/plugins/esbuild';
|
|
124
|
-
|
|
125
|
-
await esbuild.build({
|
|
126
|
-
entryPoints: ['src/index.ts'],
|
|
127
|
-
bundle: true,
|
|
128
|
-
outfile: 'dist/index.js',
|
|
129
|
-
plugins: [
|
|
130
|
-
reactivity()
|
|
131
|
-
]
|
|
132
|
-
});
|
|
133
|
-
```
|
|
134
|
-
|
|
135
119
|
### TypeScript Custom Transformer
|
|
136
120
|
|
|
137
121
|
For direct TypeScript compilation using `ttsc` or `ts-patch`:
|