Lets say i have a module qwe.js
and his content is following: import('./asd.js')
If i run this module somwhere from the client browser i can catch this import
request on server side with Deno.serveHttp
and generate some unique response even if file asd.js
actually does not exist at all.
However if i run exact same module somewhere from the server im unable to make the same behaviour just becouse import
statement goes uncatched with some built-in response logic.
Can i make so that my module with import
would work identical both on client and server? Or in other words – can i listen/catch/intercept import requests originated from server to make custom responses for them?