mixmaxhq / rollup-plugin-root-import

Add the ability to import modules by the root path, like Meteor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to make it work with TypeScript?

VityaSchel opened this issue · comments

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'

Turns out to be an issue with my tsconfig, sorry

I had to change paths from ['./src/'] to ['src/']