single-file-core 1.5.33 → 1.5.34

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/core/index.js +5 -1
  2. package/package.json +1 -1
package/core/index.js CHANGED
@@ -912,7 +912,11 @@ class Processor {
912
912
  try {
913
913
  templateElement.replaceWith(placeHolderElement);
914
914
  } catch (error) {
915
- // ignored
915
+ if (originalElement) {
916
+ templateElement.replaceWith(originalElement);
917
+ } else {
918
+ templateElement.remove();
919
+ }
916
920
  }
917
921
  }
918
922
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.5.33",
3
+ "version": "1.5.34",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",