fix(compat): simulate Vue 2.6.14 version in compat build (#5293)

Some Vue plugins that are actually compatible with the `vue-compat` won't work because of the version check. Right now `vue-compat` returns 3x version for the legacy method of checking Vue version via `Vue.version`. This PR instends to simulate Vue 2 version in those instances and instead return a 2x-compatible version: `2.6.14-compat:3.x.x`.
This commit is contained in:
Stanislav Lashmanov 2022-01-21 09:15:35 +03:00 committed by GitHub
parent c35ec47d73
commit d0b9708620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,7 +170,7 @@ export function createCompatVue(
}
}
Vue.version = __VERSION__
Vue.version = `2.6.14-compat:${__VERSION__}`
Vue.config = singletonApp.config
Vue.use = (p, ...options) => {