From e4fbe066f94ba75493ad004162e279d8fe7a51ff Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 22 Jul 2021 23:26:47 -0400 Subject: [PATCH] chore: fix plugin-vue build --- packages/plugin-vue/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin-vue/src/index.ts b/packages/plugin-vue/src/index.ts index 85e25994..124f1c7a 100644 --- a/packages/plugin-vue/src/index.ts +++ b/packages/plugin-vue/src/index.ts @@ -46,7 +46,7 @@ export interface Options { /** * Transform Vue SFCs into custom elements. - * **requires Vue >= 3.2.0 & Vite >= 2.4.4** + * **requires Vue \>= 3.2.0 & Vite \>= 2.4.4** * - `true`: all `*.vue` imports are converted into custom elements * - `string | RegExp`: matched files are converted into custom elements * @@ -79,7 +79,7 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin { const customElementFilter = typeof rawOptions.customElement === 'boolean' - ? () => rawOptions.customElement + ? () => rawOptions.customElement as boolean : createFilter(rawOptions.customElement || /\.ce\.vue$/) return {