babel-plugin-jsx-dom-expressions 0.36.18 → 0.37.0-beta.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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1496,7 +1496,7 @@ function transformChildren$2(path, results, config) {
1496
1496
  // boxed by textNodes
1497
1497
  if (markers || wrappedByText(childNodes, index)) {
1498
1498
  let exprId, contentId;
1499
- if (markers) tempPath = createPlaceholder(path, results, tempPath, i++, "#")[0].name;
1499
+ if (markers) tempPath = createPlaceholder(path, results, tempPath, i++, "$")[0].name;
1500
1500
  if (nextPlaceholder) {
1501
1501
  exprId = nextPlaceholder;
1502
1502
  } else {
@@ -2421,7 +2421,7 @@ function transformChildren$1(path, results, { hydratable }) {
2421
2421
 
2422
2422
  // boxed by textNodes
2423
2423
  if (markers && !child.spreadElement) {
2424
- appendToTemplate(results.template, `<!--#-->`);
2424
+ appendToTemplate(results.template, `<!--$-->`);
2425
2425
  results.template.push("");
2426
2426
  results.templateValues.push(child.exprs[0]);
2427
2427
  appendToTemplate(results.template, `<!--/-->`);
@@ -2448,7 +2448,7 @@ function createElement(path, { topLevel, hydratable }) {
2448
2448
  } else {
2449
2449
  const child = transformNode(path);
2450
2450
  if (markers && child.exprs.length && !child.spreadElement)
2451
- memo.push(t__namespace.stringLiteral("<!--#-->"));
2451
+ memo.push(t__namespace.stringLiteral("<!--$-->"));
2452
2452
  if (child.exprs.length && !child.spreadElement)
2453
2453
  child.exprs[0] = escapeExpression(path, child.exprs[0]);
2454
2454
  memo.push(getCreateTemplate(config, path, child)(path, child, true));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "babel-plugin-jsx-dom-expressions",
3
3
  "description": "A JSX to DOM plugin that wraps expressions for fine grained change detection",
4
- "version": "0.36.18",
4
+ "version": "0.37.0-beta.0",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -31,5 +31,5 @@
31
31
  "devDependencies": {
32
32
  "@babel/core": "^7.20.12"
33
33
  },
34
- "gitHead": "70ab5bf1b167c0a3cefd0a3582c0b97f502bb92b"
34
+ "gitHead": "3facf68629164c0b9f01447ac73ae6da9324ca06"
35
35
  }