code style consistency, fix syntax error

pull/5101/head
Rich Harris 5 years ago committed by GitHub
parent bf92a39679
commit b906224a7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -74,16 +74,16 @@ You first need to set up [`svelte-preprocess`](https://github.com/sveltejs/svelt
In a Rollup project, that would look like this — note that we also need to install `@rollup/plugin-typescript` so that Rollup can handle `.ts` files: In a Rollup project, that would look like this — note that we also need to install `@rollup/plugin-typescript` so that Rollup can handle `.ts` files:
```diff ```diff
+ import autoPreprocess from 'svelte-preprocess' + import autoPreprocess from 'svelte-preprocess';
+ import typescript from '@rollup/plugin-typescript'; + import typescript from '@rollup/plugin-typescript';
export default { export default {
..., ...,
plugins: [ plugins: [
svelte({ svelte({
+ preprocess: autoPreprocess({ /* options */ }), + preprocess: autoPreprocess()
}). }),
+ typescript({ sourceMap: !production }), + typescript({ sourceMap: !production })
] ]
} }
``` ```

Loading…
Cancel
Save