8000 docs: fix typescript rollup plugin (#195) · sveltejs/svelte-preprocess@ac4c954 · GitHub
[go: up one dir, main page]

Skip to content

Commit ac4c954

Browse files
authored
docs: fix typescript rollup plugin (#195)
1 parent 085ba5d commit ac4c954

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ export default {
102102
file: 'public/bundle.js',
103103
},
104104
plugins: [
105+
+ // teach rollup how to handle typescript imports
106+
+ typescript({ sourceMap: !production }),
105107
svelte({
106108
+ preprocess: autoPreprocess({
107109
+ sourceMap: !production,
108110
+ postcss: {
109111
+ plugins: [require('autoprefixer')()]
110112
+ }
111113
+ }),
112-
+ // teach rollup how to handle typescript imports
113-
+ typescript({ sourceMap: !production }),
114114
// enable run-time checks when not in production
115115
dev: !production,
116116
// we'll extract any component CSS out into

0 commit comments

Comments
 (0)
0