Vue inside Aurelia
Libception. Learn how to use Vue inside of your Aurelia applications.
Install Dependencies
npm install vue@^3.5 pinianpm install --save-dev @aurelia/vite-plugin @vitejs/plugin-vue @vitejs/plugin-vue-jsx @vue/tsconfig vue-tsc vite
Configure Vite for Both Frameworks
// vite.config.ts
import { defineConfig } from 'vite';
import aurelia from '@aurelia/vite-plugin';
import vue from '@vitejs/plugin-vue';
import vueJsx from '@vitejs/plugin-vue-jsx';
export default defineConfig(({ mode }) => ({
plugins: [
aurelia(),
vue({
script: {
defineModel: true
},
template: {
compilerOptions: {
// Vue 3.5 props destructuring is stable, no extra flags needed,
// but keep the switch for teams that want to forbid it.
propsDestructure: mode === 'strict' ? 'error' : true
}
}
}),
vueJsx()
],
define: {
__VUE_OPTIONS_API__: true,
__VUE_PROD_DEVTOOLS__: false
}
}));TypeScript + Type Checking
Build a Modern Vue Component
Create the Aurelia Wrapper
Register and Use the Wrapper
Advanced Integration Patterns
Forward Vue Events into Aurelia
Share Global State with Pinia
Trusted Types, Teleport, and Suspense
Error Visibility in Production
Performance Tips
Validation Checklist
Last updated
Was this helpful?