( function () { const isMainNamespace = mw.config.get( 'wgNamespaceNumber' ) === 0; if ( isMainNamespace ) { mw.loader.using( [ 'vue' ] ).then( function () { const Vue = require( 'vue' ), App = require( './TypographySurvey.vue' ), mountEl = document.createElement( 'div' ); mountEl.id = 'vector-typography-survey'; document.body.appendChild( mountEl ); // @ts-ignore Vue.createMwApp( App ).mount( mountEl ); } ); } }() );