function setupVueAliases(version, Mix) {
    const vueModule = version === 3 ? 'vue3/dist/vue.cjs.js' : 'vue2/dist/vue.common.js';
    const vueCompiler = version === 3 ? '@vue/compiler-dom' : 'vue-template-compiler';
    const vueLoaderModule = version === 3 ? 'vue-loader16' : 'vue-loader15';

    Mix.resolver.alias('vue', vueModule);
    Mix.resolver.alias('vue-loader', vueLoaderModule);
    Mix.resolver.alias('vue-compiler', vueCompiler);

    const require = createRequire(import.meta.url);
    Mix.api.alias({
        vue: require.resolve(vueModule),
        vue$: require.resolve(vueModule)
    });
}
@param {string|number} version
@param {import('../../src/Mix.js')} Mix