diff --git a/scripts/vite-common.ts b/scripts/vite-common.ts index 9ae2969..d03a716 100644 --- a/scripts/vite-common.ts +++ b/scripts/vite-common.ts @@ -13,5 +13,5 @@ export const external = [...baseExternal, ...Object.keys(dependencies ?? [])]; export const rootPath = fileURLToPath(new URL('../', import.meta.url)); export const alias = { - '@': fileURLToPath(new URL('../src', import.meta.url)), + '@/': fileURLToPath(new URL('../src/', import.meta.url)), }; diff --git a/scripts/vite.es.ts b/scripts/vite.es.ts index 601f03b..05469db 100644 --- a/scripts/vite.es.ts +++ b/scripts/vite.es.ts @@ -6,9 +6,7 @@ import { alias, external } from './vite-common'; const preserveModulesRoot = 'src'; export default defineConfig({ plugins: [dtsPlugin({ - skipDiagnostics: false, - cleanVueFileName: true, - exclude: ['node_modules', 'types.d.ts'], + exclude: ['node_modules', 'components.d.ts'], }), vue()], build: { target: 'esnext', diff --git a/src/components/button/button.vue b/src/components/button/button.vue index bf3d57b..746f731 100644 --- a/src/components/button/button.vue +++ b/src/components/button/button.vue @@ -1,18 +1,12 @@