Vue packing ie error report?

after vue is packaged, open [following syntax error] in ie

clipboard.png


because Object.defineProperty () of es6 is not supported by ie8 and below.
in vue, when you pass a normal JavaScript object to the data option of a Vue instance, Vue iterates through all the properties of the object and converts them all to getter/setter using Object.defineProperty .
but it supports ie9 and above, and lower-version browsers can do shim.

Menu