vue-reactivity-polyfill
@vue/reactivity
can not support no Proxy
envs, this pkg ployfill it.
- Use proxy-polyfill
- Use core-js
If you want to use with Vue3 to be compatible with IE9+, you need to use vue3-plugin-polyfill too.
Here is a demo, vue-next-demo.
Usage
// add polyfill// vue-reactivity-polyfill-getownpropertynames is used to// fix IE Obejct.getOwnPropertyNames(fn) error.// for bundle, must imported before @vue/reactivity or vue// use// or
New API
- get(target, path, defaultValue)
- set(target, key, val)
- del(target, key)
- getLength(target: ArrayLike)
Unsupported Cases
- Symbol key
- Array length
- Dynamic prop,
object[key]
orarray[index]
- delete
- objectSpread
More, see proxy-polyfill