From b906224a7bba827a1344ff118b2177a011bd2580 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 21 Jul 2020 10:24:05 -0400 Subject: [PATCH] code style consistency, fix syntax error --- site/content/blog/2020-07-17-svelte-and-typescript.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/site/content/blog/2020-07-17-svelte-and-typescript.md b/site/content/blog/2020-07-17-svelte-and-typescript.md index 37e6c6d0c2..75f7cd250c 100644 --- a/site/content/blog/2020-07-17-svelte-and-typescript.md +++ b/site/content/blog/2020-07-17-svelte-and-typescript.md @@ -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 }) ] } ```