Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support preserveValueImports introduced in TS 4.5 (#434)
* (feat) support preserveValueImports introduced in TS 4.5 This new flag keeps imports as is, essentially functioning the same as the import transformer. * Update test/transformers/typescript.test.ts Co-authored-by: Simon Holthausen <simon.holthausen@accso.de> Co-authored-by: Christian Kaisermann <christian@kaisermann.me>
- Loading branch information
1 parent
6c6c62b
commit 4ea9982
Showing
6 changed files
with
49 additions
and
20 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<script lang="ts"> | ||
import { type Foo, Bar } from './somewhere'; | ||
import Component from './component.svelte'; | ||
import { Value } from './value'; | ||
import type { Type } from './type'; | ||
</script> |
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