@vue-jsx-vapor/compiler 0.1.0 → 0.1.1

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 CHANGED
@@ -1070,19 +1070,16 @@ function processTextLike(context) {
1070
1070
  const nexts = _optionalChain([context, 'access', _9 => _9.parent, 'access', _10 => _10.node, 'access', _11 => _11.children, 'optionalAccess', _12 => _12.slice, 'call', _13 => _13(context.index)]);
1071
1071
  const idx = nexts.findIndex((n) => !isTextLike(n));
1072
1072
  const nodes = idx > -1 ? nexts.slice(0, idx) : nexts;
1073
- const values = createTextLikeExpressions(nodes, context);
1074
- if (!values.length) return;
1075
1073
  context.dynamic.flags |= 4 /* INSERT */ | 2 /* NON_TEMPLATE */;
1076
1074
  context.registerOperation({
1077
1075
  type: 13 /* CREATE_TEXT_NODE */,
1078
1076
  id: context.reference(),
1079
- values,
1077
+ values: createTextLikeExpressions(nodes, context),
1080
1078
  effect: false
1081
1079
  });
1082
1080
  }
1083
1081
  function processTextLikeContainer(children, context) {
1084
1082
  const values = createTextLikeExpressions(children, context);
1085
- if (!values.length) return;
1086
1083
  const literals = values.map(getLiteralExpressionValue);
1087
1084
  if (literals.every((l) => l != null)) {
1088
1085
  context.childrenTemplate = literals.map((l) => String(l));
@@ -1097,8 +1094,8 @@ function processTextLikeContainer(children, context) {
1097
1094
  function createTextLikeExpressions(nodes, context) {
1098
1095
  const values = [];
1099
1096
  for (const node of nodes) {
1100
- if (isEmptyText(node)) continue;
1101
1097
  seen.get(context.root).add(node);
1098
+ if (isEmptyText(node)) continue;
1102
1099
  values.push(resolveExpression(node, context, true));
1103
1100
  }
1104
1101
  return values;
package/dist/index.js CHANGED
@@ -1070,19 +1070,16 @@ function processTextLike(context) {
1070
1070
  const nexts = context.parent.node.children?.slice(context.index);
1071
1071
  const idx = nexts.findIndex((n) => !isTextLike(n));
1072
1072
  const nodes = idx > -1 ? nexts.slice(0, idx) : nexts;
1073
- const values = createTextLikeExpressions(nodes, context);
1074
- if (!values.length) return;
1075
1073
  context.dynamic.flags |= 4 /* INSERT */ | 2 /* NON_TEMPLATE */;
1076
1074
  context.registerOperation({
1077
1075
  type: 13 /* CREATE_TEXT_NODE */,
1078
1076
  id: context.reference(),
1079
- values,
1077
+ values: createTextLikeExpressions(nodes, context),
1080
1078
  effect: false
1081
1079
  });
1082
1080
  }
1083
1081
  function processTextLikeContainer(children, context) {
1084
1082
  const values = createTextLikeExpressions(children, context);
1085
- if (!values.length) return;
1086
1083
  const literals = values.map(getLiteralExpressionValue);
1087
1084
  if (literals.every((l) => l != null)) {
1088
1085
  context.childrenTemplate = literals.map((l) => String(l));
@@ -1097,8 +1094,8 @@ function processTextLikeContainer(children, context) {
1097
1094
  function createTextLikeExpressions(nodes, context) {
1098
1095
  const values = [];
1099
1096
  for (const node of nodes) {
1100
- if (isEmptyText(node)) continue;
1101
1097
  seen.get(context.root).add(node);
1098
+ if (isEmptyText(node)) continue;
1102
1099
  values.push(resolveExpression(node, context, true));
1103
1100
  }
1104
1101
  return values;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-jsx-vapor/compiler",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Vue JSX Vapor Compiler",
5
5
  "type": "module",
6
6
  "keywords": [