Skip to content

Commit

Permalink
fix: warning Fragment with condition fails with undefined vnode (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amour1688 authored Jul 14, 2020
1 parent 672f27d commit 9179e9c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/babel-plugin-jsx/src/transform-vue-jsx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
getJSXAttributeName,
transformJSXText,
transformJSXExpressionContainer,
isFragment,
walksScope,
} from './utils';
import parseDirectives from './parseDirectives';
Expand Down Expand Up @@ -123,10 +122,6 @@ const buildProps = (path: NodePath<t.JSXElement>, state: State) => {
let slots: t.Identifier | t.Expression | null = null;
let patchFlag = 0;

if (isFragment(path.get('openingElement').get('name'))) {
patchFlag |= PatchFlags.STABLE_FRAGMENT;
}

if (props.length === 0) {
return {
tag,
Expand Down Expand Up @@ -239,8 +234,6 @@ const buildProps = (path: NodePath<t.JSXElement>, state: State) => {
}
}

console.log(value)

if (directiveName === 'model' && value) {
properties.push(t.objectProperty(
t.stringLiteral(`onUpdate:${propName}`),
Expand Down

0 comments on commit 9179e9c

Please sign in to comment.