vite-plugin-svg-spritegen 1.2.3 → 1.2.4

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.js CHANGED
@@ -103,7 +103,7 @@ const writeSprite = (spritePath, svgMap) => {
103
103
  ]
104
104
  }).data;
105
105
  }
106
- const svgEl = nodeHtmlParser.parse(svg.content).querySelector("svg");
106
+ const svgEl = nodeHtmlParser.parse(content2).querySelector("svg");
107
107
  if (!svgEl) {
108
108
  throw new Error(`SVG file at path "${svg.filePath}" does not contain an svg tag.`);
109
109
  }
package/dist/index.mjs CHANGED
@@ -101,7 +101,7 @@ const writeSprite = (spritePath, svgMap) => {
101
101
  ]
102
102
  }).data;
103
103
  }
104
- const svgEl = parse(svg.content).querySelector("svg");
104
+ const svgEl = parse(content2).querySelector("svg");
105
105
  if (!svgEl) {
106
106
  throw new Error(`SVG file at path "${svg.filePath}" does not contain an svg tag.`);
107
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-svg-spritegen",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Vite plugin that generates an svg spritesheet, optionally removing unused svg files.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",