Subscribe on changes!

Vue.set not available in UMD bundle

avatar
Sep 1st 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?

avatar
Sep 1st 2020

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

It will be provided in the IE11 build though.

avatar
Sep 2nd 2020

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