import a locel module from a webmodule
I have a module that i inport into my local scope and that module should also import a module from my local scope and not from its url , is this possible ? if i use a module from a server in my local scope , can the script from the server import something from my local scope ? /home/user/local.js /home/user/test.js https://deno.land/mymod/script.js
So, as said this is how you'd do it: local.js https://deno.land/mymod/script.js You can also use the std/fs resolve function and there's some helper function in std to get a fs path from a URL to help you along. You can also try this out by creating a local script.js and using an import map to "rename" it into https://deno.land/mymod/script.js, I think.
oh i seee, thanks ! i tried it before but i was just passing a absolute system path like
/var/www/html i just was missing the
file:/// infront of it !
cool, thank you for your help
but now i wasted some resources only for this test module
well i think i may be using it in the future for further tests