diff --git a/site/content/docs/04-compile-time.md b/site/content/docs/04-compile-time.md index 755985520d..361c9cdbc4 100644 --- a/site/content/docs/04-compile-time.md +++ b/site/content/docs/04-compile-time.md @@ -199,11 +199,11 @@ result: { code: string, dependencies?: Array }>, - script?: (input: { content: string, attributes: Record, filename: string }) => Promise<{ + script?: (input: { content: string, markup: string, attributes: Record, filename: string }) => Promise<{ code: string, dependencies?: Array }>, - style?: (input: { content: string, attributes: Record, filename: string }) => Promise<{ + style?: (input: { content: string, markup: string, attributes: Record, filename: string }) => Promise<{ code: string, dependencies?: Array }> @@ -242,7 +242,7 @@ const { code } = await svelte.preprocess(source, { --- -The `script` and `style` functions receive the contents of `