chore(examples): cleanup tsconfig & vite config
This commit is contained in:
@@ -9,12 +9,7 @@
|
||||
"allowJs": true,
|
||||
"types": [
|
||||
"vite/client"
|
||||
],
|
||||
"paths": {
|
||||
"~/*": [
|
||||
"../../packages/core/src/*"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
|
||||
@@ -2,28 +2,24 @@ import { resolve } from 'node:path'
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import AutoImport from 'unplugin-auto-import/vite'
|
||||
import svgLoader from 'vite-svg-loader'
|
||||
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
dedupe: ['vue'],
|
||||
},
|
||||
plugins: [
|
||||
vue({
|
||||
reactivityTransform: true,
|
||||
}),
|
||||
svgLoader(),
|
||||
vue(),
|
||||
AutoImport({
|
||||
imports: ['vue', '@vueuse/core', 'vue/macros'],
|
||||
imports: ['vue', '@vueuse/core'],
|
||||
dts: resolve('src/auto-imports.d.ts'),
|
||||
}),
|
||||
],
|
||||
server: {
|
||||
watch: {
|
||||
ignored: ['!**/node_modules/@vue-flow/core/**'],
|
||||
ignored: ['!**/node_modules/@vue-flow/**/*'],
|
||||
},
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: ['@vue-flow/core'],
|
||||
exclude: ['@vue-flow/core', '@vue-flow/minimap', '@vue-flow/controls', '@vue-flow/background'],
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user