You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using something with a circular dependency like https://deno.land/[email protected]/http/server.ts obviously renders both because the hash or search is only in the root module:
The text was updated successfully, but these errors were encountered:
jeroenptrs
changed the title
Deno.compile appends extensions to URI's ending with a hash or search
Deno.compile appends extensions to URIs ending with a hash or search
Aug 10, 2020
Instead of just replacing some extensions, we always append the extension to the end of the URL, as it is impossible to "guess" at what would really work for the target runtime environment. Deno treats each unique URL as a seperate module, so the duplicate emits of server.ts are expected, because as far as Deno knows those query params impact the source being served up.
There is denoland/deno_emit#41 which could possible provide a replacer "built in" which is still worth considering, but for right now it is Deno.bundle() to do some post processing on Deno.compile() emit to get it into a situation where it can be run in whatever target environment you need.
The compiler API does compile the source code and emits a sourcemap, but the filenames in the emit map are not correct.
This example shows a basic discrepancy:
Using something with a circular dependency like
https://deno.land/[email protected]/http/server.ts
obviously renders both because the hash or search is only in the root module:The text was updated successfully, but these errors were encountered: