-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add typescript support in .svelte files (#277)
* fix: add typescript support in .svelte files enable and add preprocessor for sveltekit and svelte respectively (fix #276) * Update .changes/fix-typescript-in-svelte-and-sveltekit.md to be more concise Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com> * style: hand-reformat line 7 to be multi-line Signed-off-by: Lukas <65358837+lukthony@users.noreply.github.com> Signed-off-by: Lukas <65358837+lukthony@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"create-tauri-app": patch | ||
--- | ||
|
||
Add `svelte-process` preprocessor to `svelte-ts` and `svelte-kit-ts` templates by default so typescript can work correctly inside `.svelte` files. |
2 changes: 2 additions & 0 deletions
2
packages/cli/fragments/fragment-svelte-kit-ts/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
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
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