File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,16 @@ const config = {
7
7
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
8
8
// for more information about preprocessors
9
9
preprocess : [ vitePreprocess ( ) ] ,
10
-
11
10
kit : {
12
11
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
13
12
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
14
13
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
15
14
adapter : adapter ( )
15
+ } ,
16
+ onwarn ( warning , defaultHandler ) {
17
+ // Do not show 3rd party warnings
18
+ if ( warning . filename . includes ( 'node_modules' ) ) return ;
19
+ defaultHandler ( warning ) ;
16
20
}
17
21
} ;
18
- export default config ;
22
+ export default config ;
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ import { defineConfig } from 'vite';
4
4
5
5
export default defineConfig ( {
6
6
plugins : [ sveltekit ( ) , purgeCss ( ) ]
7
- } ) ;
7
+ } ) ;
You can’t perform that action at this time.
0 commit comments