From a6ca304ba9b563448d3c50ff8d357a8fa29af1cc Mon Sep 17 00:00:00 2001 From: winixt Date: Thu, 14 Mar 2024 20:57:02 +0800 Subject: [PATCH] fix: v-slots should not import resolveDirective --- 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 3395ab99..90ca1409 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;