Skip to content

Commit ea55f4d

Browse files
authored
fix(site): get the site building again (#9819)
* Push * Downgrade v-p-s * Remove vps and sass * Revert renderer
1 parent 06df397 commit ea55f4d

File tree

5 files changed

+81
-33
lines changed

5 files changed

+81
-33
lines changed

documentation/docs/04-compiler-and-api/01-svelte-compiler.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,27 @@ declare global {
136136

137137
export {};
138138

139+
// @filename: sass.d.ts
140+
declare module 'sass' {
141+
export function render(
142+
options: {
143+
file: string;
144+
data: string;
145+
includePaths: string[];
146+
},
147+
callback: (err: Error, result: Result) => void
148+
): Result;
149+
150+
export interface Result {
151+
css: {
152+
toString(): string;
153+
};
154+
stats: {
155+
includedFiles: string[];
156+
};
157+
}
158+
}
159+
139160
// @filename: main.ts
140161
// @errors: 2322 2345 2339
141162
/// <reference types="@types/node" />

documentation/docs/04-compiler-and-api/02-client-side-component-api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ A function is returned that will remove the event listener when called.
152152

153153
```ts
154154
/// file: index.js
155+
// @errors: 7006
155156
// @filename: ambient.d.ts
156157
import { SvelteComponent, ComponentConstructorOptions } from 'svelte';
157158

documentation/docs/05-misc/03-typescript.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,23 @@ If you don't need or want all the features SvelteKit has to offer, you can scaff
2828

2929
```ts
3030
/// file: svelte.config.js
31+
// @filename: ambient.d.ts
32+
declare module '@sveltejs/vite-plugin-svelte' {
33+
import { ResolvedConfig } from 'vite';
34+
import { InlineConfig } from 'vite/dist/node/config';
35+
36+
export interface VitePreprocessOptions {
37+
script?: boolean;
38+
style?: boolean | InlineConfig | ResolvedConfig;
39+
}
40+
41+
export function vitePreprocess(
42+
options?: VitePreprocessOptions
43+
): import('svelte/compiler').PreprocessorGroup;
44+
}
45+
46+
// @filename: index.ts
47+
// ---cut---
3148
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
3249

3350
const config = {

pnpm-lock.yaml

Lines changed: 42 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sites/svelte.dev/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"marked": "^11.0.0",
4343
"prettier": "^3.1.0",
4444
"prettier-plugin-svelte": "^3.1.2",
45-
"sass": "^1.69.5",
4645
"satori": "^0.10.11",
4746
"satori-html": "^0.3.2",
4847
"shelljs": "^0.8.5",

0 commit comments

Comments
 (0)