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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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(
|
|
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(
|
|
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