From 734abf5d9206692a578e42367477c121b3d524dd Mon Sep 17 00:00:00 2001 From: qlin Date: Mon, 27 May 2024 03:19:02 +0800 Subject: [PATCH] fix: v-slots should not import resolveDirective (#698) --- packages/babel-plugin-jsx/src/parseDirectives.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-plugin-jsx/src/parseDirectives.ts b/packages/babel-plugin-jsx/src/parseDirectives.ts index 3395ab9..90ca140 100644 --- a/packages/babel-plugin-jsx/src/parseDirectives.ts +++ b/packages/babel-plugin-jsx/src/parseDirectives.ts @@ -81,7 +81,7 @@ const parseDirectives = (params: { } const shouldResolve = - !['html', 'text', 'model', 'models'].includes(directiveName) || + !['html', 'text', 'model', 'slots', 'models'].includes(directiveName) || (isVModel && !isComponent); let modifiers = directiveModifiers;