Skip to content

Commit 0e41cd1

Browse files
committed
chore: update types
1 parent f9cd5a9 commit 0e41cd1

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.changeset/spotty-garlics-search.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': minor
3+
---
4+
5+
feat(warnings): change default loglevel of warnings originating from files in node_modules to debug. To see them call `DEBUG:vite-plugin-svelte:node-modules-onwarn pnpm build`.

packages/vite-plugin-svelte/types/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ declare module '@sveltejs/vite-plugin-svelte' {
136136
/**
137137
* Handles warning emitted from the Svelte compiler
138138
*
139+
* warnings emitted for files in node_modules are logged at the debug level, to see them run
140+
* `DEBUG=vite-plugin-svelte:node-modules-onwarn pnpm build`
141+
*
139142
* @example
140143
* ```
141144
* (warning, defaultHandler) => {
@@ -145,6 +148,7 @@ declare module '@sveltejs/vite-plugin-svelte' {
145148
* }
146149
* }
147150
* ```
151+
*
148152
*/
149153
onwarn?: (warning: Warning, defaultHandler: (warning: Warning) => void) => void;
150154
/**

packages/vite-plugin-svelte/types/index.d.ts.map

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
null,
2323
null
2424
],
25-
"mappings": ";;;;aAIYA,OAAOA;;;;;;;;;;;;;kBAaFC,aAAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAgGbC,YAAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA8EZC,qBAAqBA;;;;;;;;;;;;;iBCtKtBC,MAAMA;iBCTNC,cAAcA;iBCgBRC,gBAAgBA"
25+
"mappings": ";;;;aAIYA,OAAOA;;;;;;;;;;;;;kBAaFC,aAAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAgGbC,YAAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkFZC,qBAAqBA;;;;;;;;;;;;;iBC1KtBC,MAAMA;iBCTNC,cAAcA;iBCgBRC,gBAAgBA"
2626
}

0 commit comments

Comments
 (0)