-
-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: correctly detect real Svelte files for declarationMap #2443
Changes from 5 commits
c7b16fc
bc23745
dd1b03e
e0ea0e8
5fbc708
edde5a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export declare class TestSvelteTs { | ||
} | ||
//# sourceMappingURL=testSvelteTs.svelte.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export class TestSvelteTs {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,8 @@ | |
"esModuleInterop": true, | ||
"allowJs": true, | ||
"checkJs": true, | ||
"declarationMap": true | ||
"declarationMap": true, | ||
"declaration": true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TypeScript complains when |
||
}, | ||
"include": ["./src/**/*.d.ts", "./src/**/*.js", "./src/**/*.ts", "./src/**/*.svelte"] | ||
} |
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.
If this code isn't moved after the
sourcePath
inversion, it fails the lookup to see if it's a real Svelte file.The first line is the fix, and the second line is just cleanup to use an existing helper for clarity.