vite-plugin-vue-jsx
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -54,3 +54,3 @@ import { isRef, vShow, withDirectives, createVNode, isVNode } from 'vue'; | ||
// children is slots | ||
if (typeof last == 'object' && !isVNode(last)) { | ||
if (Object.prototype.toString.call(last) == '[object Object]' && !isVNode(last)) { | ||
for (let i in last) { | ||
@@ -57,0 +57,0 @@ slots[i] = last[i]; |
{ | ||
"name": "vite-plugin-vue-jsx", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Support Vue directives in JSX of vite.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -58,3 +58,3 @@ import { isRef, vShow, withDirectives , createVNode, isVNode } from 'vue' | ||
// children is slots | ||
if( typeof last == 'object' && !isVNode(last) ){ | ||
if( Object.prototype.toString.call(last) == '[object Object]' && !isVNode(last) ){ | ||
for(let i in last){ | ||
@@ -61,0 +61,0 @@ slots[i] = last[i] |
Sorry, the diff of this file is not supported yet
13149