How to make it work with TypeScript?
VityaSchel opened this issue · comments
Viktor Shchelochkov commented
If I place this plugin before typescript, typescript turns paths into something like '../../../../../../index', if I put it after, it does not recognize syntax like
import type { foo } from 'bar'
Viktor Shchelochkov commented
Turns out to be an issue with my tsconfig, sorry
I had to change paths from ['./src/'] to ['src/']