File tree Expand file tree Collapse file tree 3 files changed +25
-20
lines changed Expand file tree Collapse file tree 3 files changed +25
-20
lines changed Original file line number Diff line number Diff line change 2020 "@shikijs/twoslash" : " ^3.12.2" ,
2121 "@sindresorhus/slugify" : " ^3.0.0" ,
2222 "@sveltejs/adapter-static" : " ^3.0.9" ,
23- "@sveltejs/kit" : " ^2.37.0 " ,
23+ "@sveltejs/kit" : " ^2.43.1 " ,
2424 "@sveltejs/vite-plugin-svelte" : " ^6.1.4" ,
2525 "@types/babel__core" : " ^7.20.5" ,
2626 "@types/cross-spawn" : " ^6.0.6" ,
5757 "source-map-js" : " ^1.2.1" ,
5858 "stylus" : " ^0.64.0" ,
5959 "svelte" : " ^5.38.6" ,
60- "svelte-adapter-ghpages" : " 0.2.2" ,
6160 "twoslash-eslint" : " ^0.3.4" ,
6261 "twoslash-protocol" : " ^0.3.4" ,
6362 "util" : " ^0.12.5" ,
Original file line number Diff line number Diff line change 1- import ghpagesAdapter from 'svelte-adapter-ghpages' ;
2- import path from 'path' ;
3- import { fileURLToPath } from 'url' ;
1+ import adapter from '@sveltejs/adapter-static' ;
42
53if ( typeof self === 'undefined' ) {
64 globalThis . self = globalThis ;
75}
86
9- const dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
10-
11- const outDir = path . join ( dirname , 'build/eslint-plugin-svelte' ) ;
12-
137/** @type {import('@sveltejs/kit').Config } */
148const config = {
159 compilerOptions : {
16- preserveWhitespace : true
10+ preserveWhitespace : true ,
11+ warningFilter : ( warning ) => {
12+ if ( warning . code === 'a11y_no_noninteractive_tabindex' ) return false ;
13+ return true ;
14+ }
1715 } ,
1816 extensions : [ '.svelte' , '.md' ] ,
1917 kit : {
18+ adapter : adapter ( {
19+ fallback : '404.html'
20+ } ) ,
2021 paths : {
21- base : '/eslint-plugin-svelte' ,
22- relative : false
23- } ,
24- adapter : ghpagesAdapter ( {
25- // default options are shown
26- pages : outDir ,
27- assets : outDir
28- } )
22+ base : '/eslint-plugin-svelte'
23+ }
2924 }
3025} ;
3126export default config ;
Original file line number Diff line number Diff line change 11import { sveltekit } from '@sveltejs/kit/vite' ;
22import path from 'path' ;
3- // @ts -expect-error -- Missing types
43import svelteMd from 'vite-plugin-svelte-md' ;
54import { rules as pluginRules } from 'eslint-plugin-svelte' ;
65import svelteMdOption from './tools/vite-plugin-svelte-md-option.mjs' ;
76
87import generateRoutes from './tools/generate-routes.mjs' ;
9- import type { UserConfig } from 'vite' ;
8+ import { createLogger , type UserConfig } from 'vite' ;
109import { fileURLToPath } from 'url' ;
1110
1211generateRoutes ( ) ;
1312
1413const dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
1514
15+ const logger = createLogger ( ) ;
16+
1617/** @type {import('vite').UserConfig } */
1718const config : UserConfig = {
1819 plugins : [
@@ -38,6 +39,16 @@ const config: UserConfig = {
3839 commonjsOptions : {
3940 ignoreDynamicRequires : true
4041 }
42+ } ,
43+
44+ customLogger : {
45+ ...logger ,
46+ warn ( msg , options ) {
47+ if ( msg . includes ( 'vite-plugin-svelte-md' ) && msg . includes ( 'was used to transform files' ) ) {
48+ return ;
49+ }
50+ logger . warn ( msg , options ) ;
51+ }
4152 }
4253} ;
4354
You can’t perform that action at this time.
0 commit comments