You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
`petite-vue` is an alternative distribution of Vue optimized for progressive enhancement. It provides the same template syntax and reactivity mental model with standard Vue. However, it is specifically optimized for "sprinkling" small amount of interactions on an existing HTML page rendered by a server framework.
4
4
5
-
- Only ~5.7kb
5
+
- Only ~5.8kb
6
6
- DOM-based, mutates in place
7
7
- Driven by `@vue/reactivity`
8
8
@@ -332,13 +332,13 @@ Check out the [examples directory](https://github.com/vuejs/petite-vue/tree/main
332
332
-`v-cloak`
333
333
-`reactive()`
334
334
-`nextTick()`
335
+
- Template refs
335
336
336
337
### Not Supported
337
338
338
339
Some features are dropped because they have a relatively low utility/size ratio in the context of progressive enhancement. If you need these features, you should probably just use standard Vue.
339
340
340
341
-`ref()`, `computed()` etc.
341
-
- Template refs (just use selectors)
342
342
- Render functions (`petite-vue` has no virtual DOM)
343
343
- Reactivity for Collection Types (Map, Set, etc., removed for smaller size)
344
344
- Transition, KeepAlive, Teleport, Suspense
@@ -350,6 +350,6 @@ Some features are dropped because they have a relatively low utility/size ratio
350
350
## Relationship with Alpine
351
351
352
352
- This is indeed addressing a similar scope to Alpine, but aims to be even more minimal.
353
-
-`petite-vue` is less than half the size of Alpine.
353
+
-`petite-vue` is only half the size of Alpine.
354
354
-`petite-vue` has no transition system (maybe this can be an opt-in plugin).
355
355
- Alpine is developing its own ecosystem and likely will diverge more from Vue in the future. `petite-vue` aligns with standard Vue behavior whenever possible, so it's less friction moving to standard Vue if needed. It's intended to cover the progressive enhancement use case where standard Vue is less optimized for nowadays.
0 commit comments