Closed dsherret closed 2 years ago
I think the base shouldn't generally be the same file as a file in the source map. Was there a specific scenario where the screen grab was from?
@kitsonk yeah, this is v2::tests::import_map in eszip
It seems they were the same because of this line?
Ok, I think the fix would be to guard against equality and to just output the basename in such cases. I guess eszip keeps the same files indexed by their original filename versus an output filename. Should be a straight forward fix.
Temporarily reverting this one because it causes source maps to have blank source file names and there's too much to deal with WRT the latest swc upgrade (so let's do a follow up PR).
Reverts denoland/deno_ast#87
cc @kitsonk