Skip to content

Why are absolute ids skipped? #101

@eddiemonge

Description

@eddiemonge

On this line https://github.com/aleclarson/vite-tsconfig-paths/blob/master/src/index.ts#L114, it skips it if it is an "absolute path" but why?

I have this in my tsconfig: "paths": { "/*": ["./*"] }," so I can do imports like import CardNavItem from '/UI/CardNavItem';. This fails through the plugin but if I remove the isAbsolute check it works and in my limited testing, doesn't seem to break anything else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions