-
Notifications
You must be signed in to change notification settings - Fork 922
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added lang specifier to script tag, i.e., lang='typescript' (#1411)
- Loading branch information
1 parent
d4e548c
commit eb51fa0
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
create-snowpack-app/app-template-svelte-typescript/src/App.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(() => { | ||
|
12 changes: 6 additions & 6 deletions
12
create-snowpack-app/app-template-svelte-typescript/svelte.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}, | ||
}), | ||
}; |
eb51fa0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: