feat(test-app): add debug component and optimize build configuration
- Add HomeViewSimple.vue for debugging performance issues - Configure Vite with decorator support and optimization settings - Add babelParserPlugins for legacy decorator support - Optimize dependencies for vue-facing-decorator compatibility Enables debugging of performance issues and optimizes build process.
This commit is contained in:
@@ -7,7 +7,13 @@ import vueDevTools from 'vite-plugin-vue-devtools'
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
vue(),
|
||||
vue({
|
||||
script: {
|
||||
defineModel: true,
|
||||
propsDestructure: true,
|
||||
babelParserPlugins: ['decorators-legacy', 'classProperties']
|
||||
}
|
||||
}),
|
||||
vueDevTools(),
|
||||
],
|
||||
resolve: {
|
||||
@@ -15,4 +21,10 @@ export default defineConfig({
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
},
|
||||
},
|
||||
esbuild: {
|
||||
target: 'es2020'
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: ['vue-facing-decorator']
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user