tmcw
tmcw17mo ago

Is it possible to know what version of a dynamically-imported module was just imported?

Right now, you can run code like import('npm:lodash'), which will get the latest version of lodash. Is it possible to know what version of lodash that resolved to, in the runtime or elsewhere? I suspect that it writes to an import map if there is one?
1 Reply
Josh
Josh17mo ago
If you're on Windows you can go to %LOCALAPPDATA%\deno\npm\ I don't know if you'd be able to resolve during runtime