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

Vue.set not available in UMD bundle #2026

Closed
Fuzzyma opened this issue Sep 1, 2020 · 2 comments
Closed

Vue.set not available in UMD bundle #2026

Fuzzyma opened this issue Sep 1, 2020 · 2 comments

Comments

@Fuzzyma
Copy link

Fuzzyma commented Sep 1, 2020

Version

3.0.0-rc.9

Reproduction link

https://codepen.io/fuzzyma/pen/PoNKVoK

Steps to reproduce

Run the codepen with console open

What is expected?

Vue.set should be defined

What is actually happening?

Its not


According to the docs:

Important

The above only applies to the ES Modules builds for use with tree-shaking capable bundlers - the UMD build still includes all features and exposes everything on the Vue global variable (and the compiler will produce appropriate output to use APIs of the global instead of importing).

So it should be available, shouldnt it?

@yyx990803
Copy link
Member

yyx990803 commented Sep 1, 2020

It doesn't exist in Vue 3 because Vue 3 doesn't need it.

It will be provided in the IE11 build though.

@Fuzzyma
Copy link
Author

Fuzzyma commented Sep 2, 2020

Doesn't that force us to write different code for the ie11 version and the other version?

@github-actions github-actions bot locked and limited conversation to collaborators Nov 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants