vite-plugin-svg-spritegen 2.0.6 → 2.0.7

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/README.md CHANGED
@@ -81,8 +81,14 @@ svgSpritegen({
81
81
  // A RegExp (or string) with a named capture group `icon`. Every match is checked
82
82
  // against the real icon set, so unrelated strings are ignored automatically.
83
83
  matchPattern: /['"`](?<icon>[^'"`\r\n]+?)['"`]/g,
84
- // Which files to scan / skip (node_modules is always excluded).
85
- srcInclude: ['**/*.[jt]s?(x)', '**/*.[cm][jt]s', '**/*.md?(x)'],
84
+ // Which files to scan / skip (node_modules is always excluded). These are matched by
85
+ // rolldown's native glob engine, which supports `*`, `**`, and `[...]` character classes
86
+ // but NOT extglobs like `?(x)`, `@(a|b)`, `+(...)` — list each extension explicitly.
87
+ srcInclude: [
88
+ '**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx',
89
+ '**/*.mjs', '**/*.cjs', '**/*.mts', '**/*.cts',
90
+ '**/*.md', '**/*.mdx',
91
+ ],
86
92
  srcExclude: [],
87
93
  // Icon ids to always keep, even if they aren't detected in source.
88
94
  whitelist: [],
package/dist/index.js CHANGED
@@ -200,9 +200,16 @@ var stripUnusedDefaults = {
200
200
  enabled: true,
201
201
  matchPattern: defaultMatchPattern,
202
202
  srcInclude: [
203
- "**/*.[jt]s?(x)",
204
- "**/*.[cm][jt]s",
205
- "**/*.md?(x)"
203
+ "**/*.js",
204
+ "**/*.jsx",
205
+ "**/*.ts",
206
+ "**/*.tsx",
207
+ "**/*.mjs",
208
+ "**/*.cjs",
209
+ "**/*.mts",
210
+ "**/*.cts",
211
+ "**/*.md",
212
+ "**/*.mdx"
206
213
  ],
207
214
  srcExclude: [],
208
215
  whitelist: []
package/dist/index.mjs CHANGED
@@ -172,9 +172,16 @@ var stripUnusedDefaults = {
172
172
  enabled: true,
173
173
  matchPattern: defaultMatchPattern,
174
174
  srcInclude: [
175
- "**/*.[jt]s?(x)",
176
- "**/*.[cm][jt]s",
177
- "**/*.md?(x)"
175
+ "**/*.js",
176
+ "**/*.jsx",
177
+ "**/*.ts",
178
+ "**/*.tsx",
179
+ "**/*.mjs",
180
+ "**/*.cjs",
181
+ "**/*.mts",
182
+ "**/*.cts",
183
+ "**/*.md",
184
+ "**/*.mdx"
178
185
  ],
179
186
  srcExclude: [],
180
187
  whitelist: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-svg-spritegen",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
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",