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 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 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.

@yyx990803 yyx990803 closed this Sep 1, 2020
@Fuzzyma
Copy link
Author

@Fuzzyma Fuzzyma commented Sep 2, 2020

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

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.