Commit c601db8
authored
fix: when installed typescript version contains 0 it would cause error to be thrown "Expected version to be parsed" (#399)
I was using this transformer with the rollup typescript plugin but
noticed when the installed typescript version is "5.0.4" an error is
thrown "Expected version to be parsed".
I believe this is caused by checking the installed version to see if
they are undefined by number 0 is also considered to be falsy in
javascript causing this check to fail despite having typescript
installed correctly1 parent 32d0b3a commit c601db8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
0 commit comments