diff options
author | Roan Kattouw <roan.kattouw@gmail.com> | 2021-02-23 16:14:21 -0500 |
---|---|---|
committer | VolkerE <volker.e@wikimedia.org> | 2021-11-02 05:03:36 +0000 |
commit | c52f650809eee8a494d0555b86e4f086b9584f8b (patch) | |
tree | b08338b4b19d81eea5d392178939d1b1357e5823 /.dockerignore | |
parent | 8eced80e24af65a12fce182bcb00a59e7fbd68b2 (diff) | |
download | mediawikicore-c52f650809eee8a494d0555b86e4f086b9584f8b.tar.gz mediawikicore-c52f650809eee8a494d0555b86e4f086b9584f8b.zip |
Add Vue.createMwApp(), to help with Vue 2->3 migration
This will allow code that mounts components to be written in a way that
will keep working across the Vue 2->3 migration:
var RootComponent = require( './RootComponent.vue' ),
store = require( './store.js' ); // if using Vuex
Vue.createMwApp( RootComponent )
.use( store ) // if using Vuex
.mount( '#foo' );
While we're still using Vue 2, createMwApp() will return something that
pretends to be an app object, with support for .use() and .mount().
Once we move to Vue 3, createMwApp() will remain, as a wrapper around
Vue.createApp() that adds in the i18n plugin and the error logger.
Migrating to this API won't be required immediately, since the change
upgrading Vue from v2 to v3-compat will include a compatibility wrapper
for the old calling style.
Bug: T251974
Change-Id: Ib3ef9b88547b43c566abb007cde08a27baf2b7a4
Diffstat (limited to '.dockerignore')
0 files changed, 0 insertions, 0 deletions