Skip to content

Commit

Permalink
docs: fixed destructuring errors in example in preprocessing.md (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpicyRicecaker authored Mar 2, 2021
1 parent 8c14f5d commit af3df3a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/preprocessing.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,11 @@ export default {
plugins: [
svelte({
preprocess: sveltePreprocess({
typescript({ content, filename }) {
const { js: code } = transformSync(content, {
typescript({ content }) {
const { code, map } = transformSync(content, {
loader: 'ts',
});

return { code };
return { code, map };
},
}),
}),
Expand Down

0 comments on commit af3df3a

Please sign in to comment.