es6-proxy-polyfill
es6-proxy-polyfill copied to clipboard
This polyfill does not test Browser Support
My expectation was that the polyfill would only be used if there is no proxy support in the browser.
Unfortunately this is not the case and a simple test in a Vue.js application, which unfortunately also has to support IE 11, immediately led to a bug in Firefox 76.
By the way, it does not work in IE 11 either...
import 'es6-proxy-polyfill'
export default {
name: 'App',
components: {},
data: function() {
return {
myprop: ''
};
},
created() {
const test = new Proxy({}, {
set: (target, prop, value) => {
console.log(target, prop, value)
target[prop] = value
return true
}
})
test.name = 'Hans'
console.log(test.name)
}
}

For non-array object, the properties you want to proxy must be known at creation time

From the error message, it seems that packaging causes. Can you show me the packed file?
same error
same error
The code is being refactored.
You can try to import the polyfill as <script> in HTML.
same error
The code is being refactored. You can try to import the polyfill as
<script>in HTML.
Do you have CDN address ?
same error
The code is being refactored. You can try to import the polyfill as
<script>in HTML.Do you have CDN address ?
No
same error
The code is being refactored. You can try to import the polyfill as
<script>in HTML.Do you have CDN address ?
No
Thanks anyway
想问下作者能否在Vue3项目里面使用这个polyfill去兼容IE11浏览器?
May I ask, can I use this polyfill in the Vue3 project to be compatible with IE11 and chrome browsers lower than v49?
May I ask, can I use this polyfill in the Vue3 project to be compatible with IE11 and chrome browsers lower than v49?
I also wanna know this