Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This polyfill does not test Browser Support #5

Open
MBurchard opened this issue May 14, 2020 · 11 comments
Open

This polyfill does not test Browser Support #5

MBurchard opened this issue May 14, 2020 · 11 comments

Comments

@MBurchard
Copy link

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)
	}
}

grafik

@ambit-tsai
Copy link
Owner

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

@ambit-tsai
Copy link
Owner

proxy-issues-5

@ambit-tsai
Copy link
Owner

From the error message, it seems that packaging causes.
Can you show me the packed file?

@guanyue-leo
Copy link

same error

@ambit-tsai
Copy link
Owner

same error

The code is being refactored.
You can try to import the polyfill as <script> in HTML.

@guanyue-leo
Copy link

same error

The code is being refactored.
You can try to import the polyfill as <script> in HTML.

Do you have CDN address ?

@ambit-tsai
Copy link
Owner

same error

The code is being refactored.
You can try to import the polyfill as <script> in HTML.

Do you have CDN address ?

No

@guanyue-leo
Copy link

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

@luvletterldl
Copy link

想问下作者能否在Vue3项目里面使用这个polyfill去兼容IE11浏览器?

@bullub
Copy link

bullub commented Jan 27, 2022

May I ask, can I use this polyfill in the Vue3 project to be compatible with IE11 and chrome browsers lower than v49?

@BenHerbst
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants