Skip to content

Commit

Permalink
Added lang specifier to script tag, i.e., lang='typescript' (#1411)
Browse files Browse the repository at this point in the history
  • Loading branch information
kayodebristol authored Oct 27, 2020
1 parent d4e548c commit eb51fa0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script>
<script lang='typescript'>
import {onMount} from 'svelte';
let count: number = 0;
onMount(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const autoPreprocess = require('svelte-preprocess');

module.exports = {
preprocess: autoPreprocess({
defaults: {
script: 'typescript'
}
})
}
preprocess: autoPreprocess({
defaults: {
script: 'typescript',
},
}),
};

1 comment on commit eb51fa0

@vercel
Copy link

@vercel vercel bot commented on eb51fa0 Oct 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.