@vue-jsx-vapor/compiler 0.2.7 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -5
- package/dist/index.js +1 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -1205,7 +1205,7 @@ function transformComponentSlot(node, dir, context) {
|
|
1205
1205
|
const { children } = node;
|
1206
1206
|
const arg = dir && dir.arg;
|
1207
1207
|
const nonSlotTemplateChildren = children.filter(
|
1208
|
-
(n) =>
|
1208
|
+
(n) => !isEmptyText(n) && !(n.type === "JSXElement" && findProp(n, "v-slot"))
|
1209
1209
|
);
|
1210
1210
|
const [block, onExit] = createSlotBlock(node, dir, context);
|
1211
1211
|
const { slots } = context;
|
@@ -1342,10 +1342,6 @@ function createSlotBlock(slotNode, dir, context) {
|
|
1342
1342
|
const exitBlock = context.enterBlock(block);
|
1343
1343
|
return [block, exitBlock];
|
1344
1344
|
}
|
1345
|
-
function isNonWhitespaceContent(node) {
|
1346
|
-
if (node.type !== "JSXText") return true;
|
1347
|
-
return !!node.value.trim();
|
1348
|
-
}
|
1349
1345
|
|
1350
1346
|
// src/transforms/vSlots.ts
|
1351
1347
|
|
package/dist/index.js
CHANGED
@@ -1205,7 +1205,7 @@ function transformComponentSlot(node, dir, context) {
|
|
1205
1205
|
const { children } = node;
|
1206
1206
|
const arg = dir && dir.arg;
|
1207
1207
|
const nonSlotTemplateChildren = children.filter(
|
1208
|
-
(n) =>
|
1208
|
+
(n) => !isEmptyText(n) && !(n.type === "JSXElement" && findProp(n, "v-slot"))
|
1209
1209
|
);
|
1210
1210
|
const [block, onExit] = createSlotBlock(node, dir, context);
|
1211
1211
|
const { slots } = context;
|
@@ -1342,10 +1342,6 @@ function createSlotBlock(slotNode, dir, context) {
|
|
1342
1342
|
const exitBlock = context.enterBlock(block);
|
1343
1343
|
return [block, exitBlock];
|
1344
1344
|
}
|
1345
|
-
function isNonWhitespaceContent(node) {
|
1346
|
-
if (node.type !== "JSXText") return true;
|
1347
|
-
return !!node.value.trim();
|
1348
|
-
}
|
1349
1345
|
|
1350
1346
|
// src/transforms/vSlots.ts
|
1351
1347
|
import { ErrorCodes as ErrorCodes4, createCompilerError as createCompilerError4 } from "@vue/compiler-dom";
|