lukeed / tsm

TypeScript Module Loader
MIT License
1.19k stars 19 forks source link

feat: Use fallback resolver to resolve subpath imports #51

Open ukstv opened 1 year ago

ukstv commented 1 year ago

Right now, tsm resolves #subpath-import on its own which resolves to the same file imported #subpath-import. The PR uses fallback resolver to get a proper file name.

Have not found any way to test the behaviour on the repo, although it works if you apply the same modifications to a compiled JS code of TSM.