@knighted/jsx 1.7.0 → 1.7.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.
@@ -25,7 +25,7 @@ const materializeSlice = (start, end, source, replacements) => {
25
25
  let output = '';
26
26
  nested.forEach(entry => {
27
27
  if (entry.start < cursor) {
28
- throw new Error(`[jsx-loader] Overlapping replacement ranges detected (${entry.start}:${entry.end}) within ${start}:${end}. Nested replacements must not overlap.`);
28
+ return;
29
29
  }
30
30
  output += source.slice(cursor, entry.start);
31
31
  output += entry.code;
@@ -22,7 +22,7 @@ export const materializeSlice = (start, end, source, replacements) => {
22
22
  let output = '';
23
23
  nested.forEach(entry => {
24
24
  if (entry.start < cursor) {
25
- throw new Error(`[jsx-loader] Overlapping replacement ranges detected (${entry.start}:${entry.end}) within ${start}:${end}. Nested replacements must not overlap.`);
25
+ return;
26
26
  }
27
27
  output += source.slice(cursor, entry.start);
28
28
  output += entry.code;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knighted/jsx",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Runtime JSX tagged template that renders DOM or React trees anywhere without a build step.",
5
5
  "keywords": [
6
6
  "jsx runtime",