Closed edison1105 closed 1 week ago
File | Size | Gzip | Brotli |
---|---|---|---|
runtime-dom.global.prod.js | 100 kB | 38 kB | 34.2 kB |
vue.global.prod.js | 159 kB | 57.9 kB | 51.4 kB |
Name | Size | Gzip | Brotli |
---|---|---|---|
createApp (CAPI only) | 46.9 kB | 18.3 kB | 16.7 kB |
createApp | 55 kB | 21.3 kB | 19.4 kB |
createSSRApp | 59 kB | 23 kB | 21 kB |
defineCustomElement | 59.8 kB | 22.8 kB | 20.8 kB |
overall | 68.7 kB | 26.3 kB | 24 kB |
``` pnpm add https://pkg.pr.new/@vue/compiler-core@12343 ```
``` pnpm add https://pkg.pr.new/@vue/compiler-sfc@12343 ```
``` pnpm add https://pkg.pr.new/@vue/compiler-ssr@12343 ```
``` pnpm add https://pkg.pr.new/@vue/compiler-dom@12343 ```
``` pnpm add https://pkg.pr.new/@vue/reactivity@12343 ```
``` pnpm add https://pkg.pr.new/@vue/runtime-core@12343 ```
``` pnpm add https://pkg.pr.new/@vue/runtime-dom@12343 ```
``` pnpm add https://pkg.pr.new/@vue/server-renderer@12343 ```
``` pnpm add https://pkg.pr.new/@vue/shared@12343 ```
``` pnpm add https://pkg.pr.new/vue@12343 ```
``` pnpm add https://pkg.pr.new/@vue/compat@12343 ```
commit: c4e9b3f
This widens the type constraint for the interface, but I think it's worth it.
If the user writes something like
interface Emits {
bar: 1 // !!!!
}
Now it will be allowed, but the emit
function will expect ...args
to be of type 1
, which will never be satisfied, so that serves as a safeguard against misuse.
close #8457