From d905b9ff9acfbe7cfb551400545537849785752c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez?= Date: Sat, 9 Nov 2024 14:40:38 +0100 Subject: [PATCH] fix(unplugin-vue-i18n): remove directives plugin warnings on SSR build (#413) --- packages/unplugin-vue-i18n/src/core/directive.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/unplugin-vue-i18n/src/core/directive.ts b/packages/unplugin-vue-i18n/src/core/directive.ts index c1db4b1..e5b931c 100644 --- a/packages/unplugin-vue-i18n/src/core/directive.ts +++ b/packages/unplugin-vue-i18n/src/core/directive.ts @@ -89,7 +89,10 @@ export function directivePlugin({ ) } - return code + return { + code, + map: { version: 3, mappings: '', sources: [] } as any + } } } }