-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: exclude service worker from tsconfig (#8508)
* fix: exclude service worker from tsconfig Also document how to get types working inside the file closes #8127 * ws -> sw Co-authored-by: Rich Harris <hello@rich-harris.dev>
- Loading branch information
1 parent
7e121e0
commit 6c7f9b2
Showing
3 changed files
with
42 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 @@ | ||
--- | ||
'@sveltejs/kit': patch | ||
--- | ||
|
||
fix: exclude service worker from tsconfig |
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
6c7f9b2
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.
@dummdidumm @Rich-Harris Unfortunately this fix causes the following TS error when adding a service-worker.ts file to
src
folder:File content:
This is caused by adding an exclude of following files to
.svelte-kit/tsconfig.json
:Could you please give an advise how to solve this problem? Thanks in advance and kind regards!