User:Roan Kattouw (WMF)/Codex example gadget (assuming better Vue support in gadgets)/codextest.js

const Main = require( './codextest-main.vue' ); $( '#bodyContent' ).prepend( ' ' ); Vue.createMwApp( Main ).mount( '#testgadget' );