Skip to content

Commit af3df3a

Browse files
docs: fixed destructuring errors in example in preprocessing.md (#319)
1 parent 8c14f5d commit af3df3a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/preprocessing.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,11 @@ export default {
155155
plugins: [
156156
svelte({
157157
preprocess: sveltePreprocess({
158-
typescript({ content, filename }) {
159-
const { js: code } = transformSync(content, {
158+
typescript({ content }) {
159+
const { code, map } = transformSync(content, {
160160
loader: 'ts',
161161
});
162-
163-
return { code };
162+
return { code, map };
164163
},
165164
}),
166165
}),

0 commit comments

Comments
 (0)