File tree Expand file tree Collapse file tree 13 files changed +62
-28
lines changed
test/browser/features/fixtures/packages/svelte-kit Expand file tree Collapse file tree 13 files changed +62
-28
lines changed Original file line number Diff line number Diff line change
1
+ node_modules
2
+
3
+ # Output
4
+ .output
5
+ .vercel
6
+ .netlify
7
+ .wrangler
8
+ /.svelte-kit
9
+ /build
10
+
11
+ # OS
12
+ .DS_Store
13
+ Thumbs.db
14
+
15
+ # Env
16
+ .env
17
+ .env. *
18
+ ! .env.example
19
+ ! .env.test
20
+
21
+ # Vite
22
+ vite.config.js.timestamp- *
23
+ vite.config.ts.timestamp- *
Original file line number Diff line number Diff line change
1
+ engine-strict = true
Original file line number Diff line number Diff line change 2
2
"extends" : " ./.svelte-kit/tsconfig.json" ,
3
3
"compilerOptions" : {
4
4
"allowJs" : true ,
5
- "checkJs" : true ,
6
- "esModuleInterop" : true ,
7
- "forceConsistentCasingInFileNames" : true ,
8
- "resolveJsonModule" : true ,
9
- "skipLibCheck" : true ,
10
- "sourceMap" : true ,
11
- "strict" : true ,
12
- // "moduleResolution": "bundler"
5
+ "checkJs" : false ,
6
+ "moduleResolution" : " bundler"
13
7
}
14
8
// Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias
15
9
// except $lib which is handled by https://svelte.dev/docs/kit/configuration#files
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " svelte-app " ,
2
+ "name" : " svelte-kit " ,
3
3
"private" : true ,
4
4
"version" : " 0.0.1" ,
5
5
"type" : " module" ,
6
6
"scripts" : {
7
- "build" : " vite build"
7
+ "dev" : " vite dev" ,
8
+ "build" : " vite build" ,
9
+ "preview" : " vite preview" ,
10
+ "prepare" : " svelte-kit sync || echo ''"
8
11
},
9
12
"devDependencies" : {
10
- "@sveltejs/adapter-auto" : " ^4 .0.0" ,
13
+ "@sveltejs/adapter-auto" : " ^6 .0.0" ,
11
14
"@sveltejs/kit" : " ^2.16.0" ,
12
15
"@sveltejs/vite-plugin-svelte" : " ^5.0.0" ,
13
16
"svelte" : " ^5.0.0" ,
14
- "vite" : " ^6.0.0 "
17
+ "vite" : " ^6.2.6 "
15
18
}
16
19
}
Original file line number Diff line number Diff line change
1
+ <!doctype html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="utf-8 " />
5
+ < link rel ="icon " href ="%sveltekit.assets%/favicon.png " />
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 " />
7
+ %sveltekit.head%
8
+ </ head >
9
+ < body data-sveltekit-preload-data ="hover ">
10
+ < div style ="display: contents "> %sveltekit.body%</ div >
11
+ </ body >
12
+ </ html >
Original file line number Diff line number Diff line change
1
+ // place files you want to import through the `$lib` alias in this folder.
Original file line number Diff line number Diff line change 1
1
<script >
2
- let { children } = $props ();
2
+ let { children } = $props ();
3
3
4
4
import { afterNavigate , beforeNavigate } from ' $app/navigation' ;
5
- import BugsnagPerformance from ' @bugsnag/browser-performance' ;
6
5
import { SvelteKitRoutingProvider } from ' @bugsnag/svelte-kit-performance' ;
6
+ import BugsnagPerformance from ' @bugsnag/browser-performance' ;
7
7
8
- BugsnagPerformance .start ({
9
- apiKey: ' d87bab7258fc1b8c236c1d21a6665634 ' ,
10
- routingProvider: new SvelteKitRoutingProvider (beforeNavigate, afterNavigate)
11
- })
8
+ // BugsnagPerformance.start({
9
+ // apiKey: 'your-api-key ',
10
+ // routingProvider: new SvelteKitRoutingProvider(beforeNavigate, afterNavigate)
11
+ // })
12
12
</script >
13
13
14
14
<nav >
15
15
<a href =" /" >Home</a >
16
16
<a href =" /contact/1" id =" contact" >Contact 1</a >
17
- <a href =" /contact/2" id =" contact-2" >Contact 2</a >
18
- <a href =" /contact/3" id =" contact-3" >Contact 3</a >
17
+ <a href =" /contact/1/profile" id =" profile" >Contact 1 profile</a >
19
18
</nav >
20
19
21
20
{@render children ()}
Original file line number Diff line number Diff line change 1
- <h1 >SvelteKit Test</h1 >
1
+ <h1 >Welcome to SvelteKit</h1 >
2
+ <p >Visit <a href =" https://svelte.dev/docs/kit" >svelte.dev/docs/kit</a > to read the documentation</p >
Original file line number Diff line number Diff line change
1
+ <script >
2
+ const { data } = $props ()
3
+
4
+ </script >
5
+
1
6
<head >
2
- <title >Contact</title >
7
+ <title >Contact { data . contactId } </title >
3
8
</head >
4
9
5
10
<h1 >Contact</h1 >
Original file line number Diff line number Diff line change 1
- <h1 >Profile</h1 >
1
+ <h1 >Profile page </h1 >
You can’t perform that action at this time.
0 commit comments