Skip to content

Commit 9179e9c

Browse files
authored
fix: warning Fragment with condition fails with undefined vnode (#28)
1 parent 672f27d commit 9179e9c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/babel-plugin-jsx/src/transform-vue-jsx.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
getJSXAttributeName,
1111
transformJSXText,
1212
transformJSXExpressionContainer,
13-
isFragment,
1413
walksScope,
1514
} from './utils';
1615
import parseDirectives from './parseDirectives';
@@ -123,10 +122,6 @@ const buildProps = (path: NodePath<t.JSXElement>, state: State) => {
123122
let slots: t.Identifier | t.Expression | null = null;
124123
let patchFlag = 0;
125124

126-
if (isFragment(path.get('openingElement').get('name'))) {
127-
patchFlag |= PatchFlags.STABLE_FRAGMENT;
128-
}
129-
130125
if (props.length === 0) {
131126
return {
132127
tag,
@@ -239,8 +234,6 @@ const buildProps = (path: NodePath<t.JSXElement>, state: State) => {
239234
}
240235
}
241236

242-
console.log(value)
243-
244237
if (directiveName === 'model' && value) {
245238
properties.push(t.objectProperty(
246239
t.stringLiteral(`onUpdate:${propName}`),

0 commit comments

Comments
 (0)