Skip to content

Commit 16c08e5

Browse files
authored
fix: log missing config at info level (#1179)
1 parent 85f5d96 commit 16c08e5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/whole-bees-sink.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/vite-plugin-svelte': patch
3+
---
4+
5+
increase logLevel to info for "no Svelte config found" message

packages/vite-plugin-svelte/src/utils/load-svelte-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function findConfigToLoad(viteConfig, inlineOptions) {
6767
.map((candidate) => path.resolve(root, candidate))
6868
.filter((file) => fs.existsSync(file));
6969
if (existingKnownConfigFiles.length === 0) {
70-
log.debug(`no svelte config found at ${root}`, undefined, 'config');
70+
log.info(`no Svelte config found at ${root} - using default configuration.`);
7171
return;
7272
} else if (existingKnownConfigFiles.length > 1) {
7373
log.warn(

0 commit comments

Comments
 (0)