vite-plugin-svg-spritegen 2.0.3 → 2.0.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
@@ -81,13 +81,15 @@ var writeIfChanged = (filePath, content) => {
81
81
  var writeTypes = async (filePath, svgMap) => {
82
82
  await writeIfChanged(filePath, [
83
83
  "/* eslint-disable */",
84
+ "// biome-ignore-all format: autogenerated file — kept byte-stable across rebuilds",
85
+ "// biome-ignore-all lint: autogenerated file — kept byte-stable across rebuilds",
84
86
  "",
85
87
  "// This file is autogenerated. Keep it committed so typechecking works without a build.",
86
88
  "",
87
89
  "export type IconName = (typeof iconNames)[number];",
88
90
  "",
89
91
  "export const iconNames = [",
90
- ...[...svgMap.keys()].sort().map((name) => ` '${name}',`),
92
+ ...[...svgMap.keys()].sort().map((name) => `\t'${name}',`),
91
93
  "] as const;",
92
94
  ""
93
95
  ].join("\n"));
package/dist/index.mjs CHANGED
@@ -53,13 +53,15 @@ var writeIfChanged = (filePath, content) => {
53
53
  var writeTypes = async (filePath, svgMap) => {
54
54
  await writeIfChanged(filePath, [
55
55
  "/* eslint-disable */",
56
+ "// biome-ignore-all format: autogenerated file — kept byte-stable across rebuilds",
57
+ "// biome-ignore-all lint: autogenerated file — kept byte-stable across rebuilds",
56
58
  "",
57
59
  "// This file is autogenerated. Keep it committed so typechecking works without a build.",
58
60
  "",
59
61
  "export type IconName = (typeof iconNames)[number];",
60
62
  "",
61
63
  "export const iconNames = [",
62
- ...[...svgMap.keys()].sort().map((name) => ` '${name}',`),
64
+ ...[...svgMap.keys()].sort().map((name) => `\t'${name}',`),
63
65
  "] as const;",
64
66
  ""
65
67
  ].join("\n"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-svg-spritegen",
3
- "version": "2.0.3",
3
+ "version": "2.0.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",