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:
```diff
+ import autoPreprocess from 'svelte-preprocess'
+ import autoPreprocess from 'svelte-preprocess';
+ import typescript from '@rollup/plugin-typescript';
export default {
...,
plugins: [
svelte({
+ preprocess: autoPreprocess({ /* options */ }),
}).
+ typescript({ sourceMap: !production }),
+ preprocess: autoPreprocess()
}),
+ typescript({ sourceMap: !production })
]
}
```

Loading…
Cancel
Save