Rich-Harris / sorcery

Resolve a chain of sourcemaps back to the original source, like magic
314 stars 36 forks source link

Fix broken output of sorcery.loadSync() #185

Closed GoJermangoGo closed 5 months ago

GoJermangoGo commented 1 year ago

When using sorcery.loadSync() instead of the asynchronous version sorcery.load(), the sourcesContentByPath map is not populated. The result is that the generated sourcemap's sourcesContent array only contains dozens of null, so the output isn't usable.

GoJermangoGo commented 11 months ago

Realized this fixes #172.

Rich-Harris commented 5 months ago

belated thanks!