vuejs/core

Vue.set not available in UMD bundle

Fuzzyma opened this issue · 2 comments

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?

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

It will be provided in the IE11 build though.

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