From 29862c0b1768571bb8c519db8f1a5fdf62103863 Mon Sep 17 00:00:00 2001 From: Thehrz Date: Fri, 10 Feb 2023 21:51:48 +0800 Subject: [PATCH] Fix element-plus CSS import --- src/components.d.ts | 4 ---- vite.config.ts | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components.d.ts b/src/components.d.ts index bef8a2b..d833f74 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -11,11 +11,7 @@ declare module '@vue/runtime-core' { ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] Footer: typeof import('./components/Footer.vue')['default'] Nav: typeof import('./components/Nav.vue')['default'] - README: typeof import('./components/README.md')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] - TheCounter: typeof import('./components/TheCounter.vue')['default'] - TheFooter: typeof import('./components/TheFooter.vue')['default'] - TheInput: typeof import('./components/TheInput.vue')['default'] } } diff --git a/vite.config.ts b/vite.config.ts index f9e9306..afd705e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -166,6 +166,6 @@ export default defineConfig({ ssr: { // TODO: workaround until they support native ESM - noExternal: ['workbox-window', /vue-i18n/], + noExternal: ['workbox-window', /vue-i18n/, 'element-plus'], }, })