Fix element-plus CSS import

This commit is contained in:
Thehrz 2023-02-10 21:51:48 +08:00
parent 9abcc06b64
commit 29862c0b17
2 changed files with 1 additions and 5 deletions

4
src/components.d.ts vendored
View File

@ -11,11 +11,7 @@ declare module '@vue/runtime-core' {
ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
Footer: typeof import('./components/Footer.vue')['default'] Footer: typeof import('./components/Footer.vue')['default']
Nav: typeof import('./components/Nav.vue')['default'] Nav: typeof import('./components/Nav.vue')['default']
README: typeof import('./components/README.md')['default']
RouterLink: typeof import('vue-router')['RouterLink'] RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView'] 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']
} }
} }

View File

@ -166,6 +166,6 @@ export default defineConfig({
ssr: { ssr: {
// TODO: workaround until they support native ESM // TODO: workaround until they support native ESM
noExternal: ['workbox-window', /vue-i18n/], noExternal: ['workbox-window', /vue-i18n/, 'element-plus'],
}, },
}) })