-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: save & prepend original
import
s manually
- Loading branch information
Showing
4 changed files
with
39 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
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,14 @@ | ||
<script lang="ts"> | ||
import Counter from './Counter.svelte'; | ||
import { capitalize } from './utils'; | ||
import { | ||
hello, world, | ||
howdy | ||
} from 'foobar'; | ||
export let name: string = 'hello'; | ||
export const value = hello() + world(); | ||
</script> | ||
|
||
<div>{capitalize(name)}</div> | ||
<Counter {value} /> |
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,16 @@ | ||
<script lang="ts">import Counter from './Counter.svelte'; | ||
This comment has been minimized.
Sorry, something went wrong. |
||
import { capitalize } from './utils'; | ||
import { | ||
hello, world, | ||
howdy | ||
} from 'foobar'; | ||
let name = "hello"; | ||
const value = hello() + world(); | ||
export { | ||
name, | ||
value | ||
}; | ||
</script> | ||
|
||
<div>{capitalize(name)}</div> | ||
<Counter {value} /> |
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 @@ | ||
import { typescript } from '../../../src'; | ||
|
||
export const config = typescript({ | ||
// | ||
}) |
Note that the
lang="ts"
in the Output is irrelevant. Svelte will drop this during its compilation.