tmcw
tmcw2y 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
Josh2y 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

Did you find this page helpful?