Skip to content

Commit 6dd5c45

Browse files
committed
build(template): Downgrade rollup-plugin-typescript2 to version 0.22.1
Unable to import TS file from Svelte file #15
1 parent 802ed7e commit 6dd5c45

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

packages/template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"rollup-plugin-node-resolve": "^5.2.0",
1212
"rollup-plugin-svelte": "^5.0.3",
1313
"rollup-plugin-terser": "^4.0.4",
14-
"rollup-plugin-typescript2": "^0.24.2",
14+
"rollup-plugin-typescript2": "0.21.0",
1515
"svelte": "^3.12.1",
1616
"typescript": "^3.4.5"
1717
},

packages/template/src/App.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script lang="ts">
22
import { onMount, onDestroy } from "svelte";
33
import { writable } from "svelte/store";
4+
import { myStore } from "./store";
45
56
import Counter from "./Counter.svelte";
67
@@ -28,4 +29,5 @@
2829
<Counter />
2930
<Counter value={1}>Counter 1</Counter>
3031
<Counter bind:value={$count} step={3}>Counter 2</Counter>
32+
<Counter bind:value={$myStore} step={5}>Counter 3</Counter>
3133
</p>

packages/template/src/store.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import { writable } from "svelte/store";
2+
export const myStore = writable(10);

0 commit comments

Comments
 (0)