Skip to content

Commit 30e1c44

Browse files
authored
Add note in documentation about preprocess array (#286)
Adding an array causes the extension to work improperly (#279), so this note should save some confusion
1 parent b5163cd commit 30e1c44

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Do you want to use TypeScript/SCSS/Less/..? See [Using with preprocessors](#usin
1717

1818
If a svelte file contains some language other than `html`, `css` or `javascript`, `svelte-vscode` needs to know how to [preprocess](https://svelte.dev/docs#svelte_preprocess) it. This can be achieved by creating a `svelte.config.js` file at the root of your project which exports a svelte options object (similar to `svelte-loader` and `rollup-plugin-svelte`). It's recommended to use the official [svelte-preprocess](https://github.com/sveltejs/svelte-preprocess) package which can handle many languages.
1919

20+
**Note**: `svelte-preprocess` supports passing an array of preprocessors (e,g, `preprocess: [postcss(), typescript()]`), but this is **not** currently supported by the language server.
21+
2022
```js
2123
// svelte.config.js - NOTE: you cannot use the new "import x from y" and "export const" syntax in here.
2224
const sveltePreprocess = require('svelte-preprocess');

0 commit comments

Comments
 (0)