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