@sveltejs/vite-plugin-svelte 5.1.0 → 5.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/vite-plugin-svelte",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "license": "MIT",
5
5
  "author": "dominikg",
6
6
  "files": [
@@ -386,7 +386,7 @@ export async function buildExtraViteConfig(options, config) {
386
386
  extraViteConfig.optimizeDeps = {
387
387
  ...extraViteConfig.optimizeDeps,
388
388
  // Experimental Vite API to allow these extensions to be scanned and prebundled
389
- extensions: options.extensions ?? ['.svelte'],
389
+ extensions: options.extensions ? [...options.extensions] : ['.svelte'],
390
390
  // Add esbuild plugin to prebundle Svelte files.
391
391
  // Currently a placeholder as more information is needed after Vite config is resolved,
392
392
  // the real Svelte plugin is added in `patchResolvedViteConfig()`