Skip to content

Commit c1d3d58

Browse files
bleucitronRomain Crestey
andauthored
docs: remove compiler duplicate paragraph (#8980)
Co-authored-by: Romain Crestey <[email protected]>
1 parent fc7c777 commit c1d3d58

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ const { code } = await preprocess(
125125
);
126126
```
127127

128-
The `script` and `style` functions receive the contents of `<script>` and `<style>` elements respectively (`content`) as well as the entire component source text (`markup`). In addition to `filename`, they get an object of the element's attributes.
129-
130128
If a `dependencies` array is returned, it will be included in the result object. This is used by packages like [vite-plugin-svelte](https://github.com/sveltejs/vite-plugin-svelte) and [rollup-plugin-svelte](https://github.com/sveltejs/rollup-plugin-svelte) to watch additional files for changes, in the case where your `<style>` tag has an `@import` (for example).
131129

132130
```ts

0 commit comments

Comments
 (0)