aleclarson / vite-tsconfig-paths

Support for TypeScript's path mapping in Vite
MIT License
1.24k stars 43 forks source link

import "~/lib"; doesn't get processed #56

Closed shuckster closed 1 year ago

shuckster commented 2 years ago

Hope I've got the right repo to report this, but I'm seeing the following issue:

// lib.ts
export const nothing = null;

// app.ts :: works
import { nothing } from '~/lib';

// app.ts :: fails
import '~/lib';

As you can see, just importing any old thing will trigger the path-transforming logic.

aleclarson commented 2 years ago

Gonna need a repository that reproduces your issue plz

shuckster commented 1 year ago

I've struggled to find time to make a minimal repo for this, but I've done enough investigation to realise that it probably isn't an issue with your plugin. If I do eventually find the cause I'll make a note here.

Thanks for the reply to this and your time, and apologies for the late reply.